Delete a branch from the repository. The current branch tip is resolved server-side, so the request does not need to know the branch SHA.Documentation Index
Fetch the complete documentation index at: https://code.storage/docs/llms.txt
Use this file to discover all available pages before exploring further.
Request Body
Branch name to delete (e.g.
feature/old-onboarding). Must not start with refs/.JWT Requirements
- The JWT must include the repository in the
repoclaim - Requires
git:writescope
Response
Notes
- The repository’s default branch cannot be deleted; attempts return
409 Conflict. - If the repository is connected to a GitHub base, branch deletion triggers a sync automatically.
Error Responses
Invalid branch name or missing required fields
Invalid JWT or missing authorization header
Missing
git:write scopeBranch does not exist
Attempted to delete the repository’s default branch