---
title: "Delete an agent"
method: DELETE
path: "/v0/agents/{id}"
---

# Delete an agent

`DELETE /v0/agents/{id}`

## Request

- Base URL: `https://api.cursor.com`
- URL: `https://api.cursor.com/v0/agents/{id}`
- Auth: HTTP bearer

Delete a cloud agent. This action is permanent and cannot be undone.

## Path parameters

- `id` string, required

## Response `200`

Agent deleted successfully

- object
  - `id` string, required: Unique identifier for the cloud agent

## Other responses

- `400`: Invalid request - bad agent ID format
- `401`: Unauthorized - invalid or missing API key
- `403`: Forbidden - insufficient permissions
- `404`: Agent not found or access denied
- `409`: Conflict - agent is deleted or archived
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/cursor/apis/cursor-cloud-agents-api.md) - [All operations](https://skmtc.dev/cursor/apis/cursor-cloud-agents-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cursor/apis/cursor-cloud-agents-api/revisions/62c9131c7ea0?raw)
