Skip to content

Soft-delete a branch

DELETE
/v1/tenants/{tenantId}/branches/{branchId}
curl --request DELETE \
--url https://api.emite.cr/v1/tenants/example/branches/example \
--header 'Authorization: Bearer <token>'

Removes a branch that was never used: it leaves the lists and pickers, and no document can be issued from it. The default branch, and a branch any document references (in either environment, drafts included), cannot be deleted: 422.

tenantId
required
string
branchId
required
string

Branch soft-deleted.

Missing or invalid JWT / API key

Tenant boundary violation or insufficient scope.

Branch not found.

It is the default branch, or documents reference it.