DELETE
/
instance
/
delete
/
{instanceId}
DELETE /instance/delete/:id
curl --request DELETE \
  --url https://api.example.com/instance/delete/{instanceId}
{
  "404": {},
  "success": true,
  "deleted_at": "<string>"
}

Overview

Permanently delete a Docker instance and all associated data. This action cannot be undone.

Request

curl -X DELETE https://api.agentik.dev/api/instance/delete/inst_7xKXtg2CW87 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Path Parameters

instanceId
string
required
Instance ID to delete

Response

{
  "success": true,
  "instance_id": "inst_7xKXtg2CW87",
  "deleted_at": "2026-02-12T11:30:00Z"
}
success
boolean
Whether deletion was successful
deleted_at
string
Timestamp when instance was deleted

What Gets Deleted

  • Docker container
  • All logs
  • API keys (encrypted)
  • Configuration files
  • Volume data
This action is permanent. All data will be lost and cannot be recovered.

Errors

404
error
Instance not found or not owned by user