Skip to main content
Delete an agent and clean up its resources. For managed agents, this remotely uninstalls the agent from the host GPU node over SSH. All associated training jobs are cascaded and removed before the agent record is deleted.

Endpoint

DELETE /v1/agents/:id Authorization: Bearer API key required.

Path parameters

string
required
Agent identifier, e.g. ag_7f8e9d0c.

Response

On success, the response shape returned by the handler is consistent with other success patterns.
boolean
True when the deletion succeeds.

Example

Remove an agent from the PIN control plane. The agent stops appearing in fleet listings and no new jobs are scheduled to it. In-flight jobs are not force-stopped by this call.

Endpoint

Authentication

Authorization: Bearer <api_key or JWT> with an account that manages the target agent.

Path parameters

string
required
Agent identifier returned by the fleet listing endpoints.

Response

integer
0 on success. Non-zero indicates an error; see message.
object
Deletion result envelope, typically { "ok": true }.

Example

Deleting an agent does not cancel jobs it currently owns. Call the job control endpoints first if you need a graceful stop.