> For the complete documentation index, see [llms.txt](https://docs.ibexa.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ibexa.ai/developers/rest-api/agents/delete-agent.md).

# Delete Agent

Delete agent by ID.

Users can only delete agents they created within their organisation.

Note: Delete operation is idempotent - returns 204 even if agent is already deleted or not found.

```json
{"openapi":"3.1.0","info":{"title":"Ibexa Agentic Marketing Platform","version":"0.1.0"},"security":[{"OAuth2PasswordBearer":[]}],"components":{"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/api/v1/login/access-token"}}}}},"paths":{"/api/v1/agents/{agent_id}":{"delete":{"tags":["agents","public"],"summary":"Delete Agent","description":"Delete agent by ID.\n\nUsers can only delete agents they created within their organisation.\n\nNote: Delete operation is idempotent - returns 204 even if agent\nis already deleted or not found.","operationId":"agents-delete_agent","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"User not authenticated","content":{"application/json":{}}},"403":{"description":"User lacks permission","content":{"application/json":{}}}}}}}}
```
