Delete an agent
Deletes an agent with its draft and published versions.
DELETE
Deletes an agent with its draft and published versions. The endpoints it answered on stop being answered by an agent. A reply already running finishes on the version it started on.
apiKeyheader
x-api-key<token>id*stringMatch
^agt_[0-9a-hjkmnp-tv-z]{16,24}$DeleteAgentResponse
application/json- response
id*AgentIdMatch
^agt_[0-9a-hjkmnp-tv-z]{16,24}$deleted*trueValue in
trueimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.agents.remove({
"id": "example"
});Example Response
{
"id": "string",
"deleted": true
}