Skip to content
中文

Delete Archived Computer

Call Create computer first and replace cmp_123 with its returned ID.

DELETE/agent/v1/computers/{computer_id}● Supported

Request parameters

  • computer_idstringrequired

    path: Computer id (cmp_...), as returned by computers.create or computers.list.

Returns

200

Own-face superset: Managed Agents has no persistent Computer deletion lifecycle. Only archived computers can be deleted. Active computers return 400 COMPUTER_ACTIVE (archive first). Destroy storage before removing registration. Success returns id and type=computer_deleted; missing or foreign computers return 404.

Errors follow the Anthropic error format (type / message / request_id) — see error codes

Request

curl
# Call Create computer first and replace cmp_123 with its returned ID.
curl -X DELETE https://api.deepraxis.com/agent/v1/computers/cmp_123 \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
Python
# Call Create computer first and replace cmp_123 with its returned ID.
import requests

opts = dict(
    base_url="https://api.deepraxis.com/agent",
    api_key="$PRAXIS_API_KEY",
)

# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.delete(
    f"{opts['base_url']}/v1/computers/cmp_123",
    headers={"Authorization": f"Bearer {opts['api_key']}"},
)
print(resp.status_code, resp.json())
TypeScript
// Call Create computer first and replace cmp_123 with its returned ID.
const opts = {
  baseURL: "https://api.deepraxis.com/agent",
  apiKey: "$PRAXIS_API_KEY",
};

// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/computers/cmp_123`, {
  method: "DELETE",
  headers: { Authorization: `Bearer ${opts.apiKey}`, "Content-Type": "application/json" },
});
console.log(resp.status, await resp.json());

Response 200

{
  "id": "cmp_a51ec23fe3f64c479634621afcd0248d",
  "type": "computer_deleted"
}

Response

HTTP 200

Computer result

application/json

Name Type Description
id string Id of the deleted computer.
type string Always computer_deleted. Confirms that a computer was deleted.