Cursor icon

Cursor

Interact with the Cursor REST API to spawn and manage AI coding agents

Actions13

Agent → Delete

AI-generated

Summary

Delete an agent by its unique Agent ID, permanently removing it from the Cursor service.

Inputs

  • Agent ID (required) — The unique identifier of the agent to delete.

Output shape

a single JSON object indicating success, including the deleted Agent ID

Returns a JSON object with 'success' set to true and the 'agentId' of the deleted agent.

Examples

Example 1: Delete an agent with ID '12345'

Set resource to 'Agent', operation to 'Delete', and Agent ID to '12345'.

Links

Discussion