# Delete a branch **DELETE /docs/{doc_id_or_slug}/branches/{slug}** ## Servers - Production: https://bump.sh/api/v1 () ## Authentication methods - Authorization token - Basic token (deprecated) ## Parameters ### Path parameters - **doc_id_or_slug** (string) UUID or slug of a documentation which can be seen in the Automatic Deployment settings page of your documentation - **slug** (string) Slug of a branch which can be seen in the branches settings page of your documentation ## Responses ### 204 Branch successfully deleted ### 422 The default branch can't be deleted ### 404 Branch not found [Powered by Bump.sh](https://bump.sh)