Delete a branch

DELETE /docs/{doc_id_or_slug}/branches/{slug}

Path parameters

  • doc_id string Required

    UUID or slug of a documentation which can be seen in the CI 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

  • Branch successfully deleted

  • The default branch can't be deleted

  • Branch not found

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