Skip to main content
POST
Delete Agent
Use this API to delete a custom agent configuration and all of its versions. Group cleanup: Before the agent document and its versions subcollection are deleted, the agentId is first removed from the agentIds array of every agent group it belongs to. If cleanup fails, the delete is aborted and the agent is left intact, so the call can be safely retried. Groups themselves are never deleted, even if they become empty.

Endpoint

POST https://api.velt.dev/v2/agents/delete

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required

Example Requests

Response

Success Response

Failure Response

Errors: NOT_FOUND (Agent not found: {agentId}).