Skip to content

Discard a branch

DELETE
/v1/branches/{id}
curl --request DELETE \
--url https://api.aerandil.com/v1/branches/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Discard an open branch: hard-delete its overlay delta rows and the branch row itself. Branch rows are hypothesis, not history, so nothing survives and the name frees for reuse. A merged branch refuses (409) — its row is the merge record. Requires objects:write.

id
required
string format: uuid

Discarded.

No such branch under this tenant.

Branch is merged and cannot be discarded.