Delete Agent
DELETE/api/v1/agents/{id}
Overview#
The Delete Agent endpoint allows you to remove an AI agent from your account. This action is irreversible, so ensure the agent is no longer needed before deleting.
Request Header
Authorizationapi key
Your 7en API key. Example: Api-Key 43NKLN3LKN4nlkn
Parameters#
Path Parameters
idint
Unique identifier of the agent to delete. Example: "{id}"
Error Response#
404
{
"error": {
"code": "agent_not_found",
"message": "Agent not found.",
"status": 404
}
}Best Practices#
- Confirmation: Always verify the agent ID before deletion to avoid accidental removal.
- Backup: Consider backing up critical agent configurations before deletion.
Delete Agent
curl -X DELETE 'https://api.7en.ai/api/v1/agents/{id}' -H 'Authorization: Api-Key YOUR_API_KEY' -H 'Content-Type: application/json'Response200
{
"message": "Agent and its knowledge folder deleted successfully",
"status": "success"
}