Reference

Delete branch

Deletes a branch. Its data stays until garbage collection.

DELETE
/namespaces/{namespace}/branches/{branch}

Fails with 409 if the branch moves while it is being deleted, as when a mount is saving to it.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

namespace*string

A namespace of your organization, such as prod/app, or <org>:<namespace> for a public namespace of another one. Encode / as %2F.

branch*string

A branch, such as main or agents/fix-1. Encode / as %2F.

Response Body

Done.

Example Request
curl -X DELETE 'https://example.com/v1/namespaces/string/branches/string'
Example Response
Empty