# Delete a branch **DELETE /projects/{id}/repository/branches/{branch}** Delete a branch ## Servers - https://www.gitlab.com/api/v4: https://www.gitlab.com/api/v4 () ## Authentication methods - Api key auth ## Parameters ### Path parameters - **id** (string | integer) The ID or [URL-encoded path of the project](https://docs.gitlab.com/api/rest/#namespaced-paths). - **branch** (string) The name of the branch ## Responses ### 204 Delete a branch ### 404 Branch Not Found [Powered by Bump.sh](https://bump.sh)