Skip to main content
DELETE
/
v1
/
environments
/
{id}
Delete environment
curl --request DELETE \
  --url https://api.agentmark.co/v1/environments/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Agentmark-App-Id: <api-key>' \
  --data '
{
  "confirmation_name": "<string>"
}
'
{
  "data": {
    "cascade": {
      "alerts_deleted": 1,
      "api_keys_revoked": 1,
      "deployments_deleted": 1,
      "fly_app_destroyed": true,
      "snapshot_rows_deleted": 1
    },
    "deleted_at": "<string>",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.agentmark.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Agentmark-App-Id
string
header
required

Application ID for tenant scoping

Authorization
string
header
required

API key (sk_agentmark_*)

Path Parameters

id
string<uuid>
required

Body

application/json
confirmation_name
string
required

Response

Environment deleted.

data
object
required