Skip to main content

DROP BRANCH Preview

Remove a branch from an Arctic Catalog.

Syntax
DROP BRANCH [ IF EXISTS ] <branch_name>
{ AT COMMIT <commit_hash> | FORCE }
[ IN <catalog_name> ]

Parameters

{{< sql-section file="data/sql/branches.json" data="droppingABranch" >}}

Examples

Drop a branch at the specified commit
DROP BRANCH myBranch
AT COMMIT "ff2fe50fef5a030c4fc8e61b252bdc33c72e2b6f929d813833d998b8368302e2"
Use the FORCE parameter to drop the specified branch
DROP BRANCH myBranch
FORCE