Delete a Git Branch
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.0.25.14 (latest)
Delete the specified Git Branch
Delete git branch specified in branch_name path param from local and remote of specified project repository
Request
DELETE
/projects/{project_id}/git_branch/{branch_name}
Expand HTTP Path definition...
project_id
string
Project Id
branch_name
string
Branch Name
Response
204: Successfully deleted.
400: Bad Request
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
message
lock
string
Error details
documentation_url
lock
string
Documentation link
429: Too Many Requests
message
lock
string
Error details
documentation_url
lock
string
Documentation link
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# Delete a Git Branch\n\nVersion 4.0.25.14 (latest)\n\n### Delete the specified Git Branch\n\nDelete git branch specified in branch_name path param from local and remote of specified project repository\n\nRequest\n-------\n\nDELETE /projects/{project_id}/git_branch/{branch_name} \nDatatype \nDescription \nRequest \nHTTP Request \npath \nHTTP Path \nExpand HTTP Path definition... \nproject_id \nstring \nProject Id \nbranch_name \nstring \nBranch Name\n\nResponse\n--------\n\n### 204: Successfully deleted.\n\nDatatype \nDescription \n(string) \nstring \n\n### 400: Bad Request\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 404: Not Found\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 429: Too Many Requests\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link"]]