Skip to main content
DELETE
Delete Agent Branch

Overview

Closes an open branch without landing its changes on dev. The branch disappears from List Agent Branches and can no longer be rebased or merged; versions already saved to it are kept for the record. To land the changes instead, use Merge Agent Branch. Requires an admin, owner, operator, or prompter role.

Headers

string
required
Your API key for authentication.

Path Parameters

string
required
The agent’s unique identifier.
string
required
The branch’s unique identifier. Returns 404 BRANCH_NOT_FOUND if the branch does not belong to this agent or has already been merged or deleted.

Response

boolean
Always true on success.
null | array
null on success, or a list of error objects if the request failed.

Docs for agents: llms.txt