Delete a branch

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://developers.bump.sh/doc/workspace/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Bump.sh Workspace MCP server": {
  "url": "https://developers.bump.sh/doc/workspace/mcp"
}
Close
DELETE /docs/{doc_id_or_slug}/branches/{slug}

Path parameters

  • doc_id_or_slug string Required

    UUID or slug of a documentation which can be seen in the Automatic Deployment settings page of your documentation

  • slug string Required

    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

DELETE /docs/{doc_id_or_slug}/branches/{slug}
curl \
 --request DELETE 'https://bump.sh/api/v1/docs/{doc_id_or_slug}/branches/my-branch' \
 --header "Authorization: Token $ACCESS_TOKEN"