Skip to main content
DELETE
/
public
/
v1
/
account
/
{accountSlug}
/
project
/
{projectSlug}
/
environments
Batch Delete Environments
curl --request DELETE \
  --url https://api.tenderly.co/api/public/v1/account/{accountSlug}/project/{projectSlug}/environments \
  --header 'Content-Type: application/json' \
  --header 'X-Access-Key: <api-key>' \
  --data '
{
  "environment_ids": [
    "d4e5f6a7-b8c9-0123-def1-234567890123",
    "e5f6a7b8-c9d0-1234-ef12-345678901234"
  ]
}
'
{
  "error": {
    "id": "596b1dc7-af60-477b-aab3-6c93eb92ddfa",
    "slug": "bad_request",
    "message": "Bad request input parameters"
  }
}

Authorizations

X-Access-Key
string
header
required

An API key is a token that a client provides when making API calls. The key can be sent as a request header:

curl 'https://api.tenderly.co/api/v1/account/${TENDERLY_ACCOUNT_SLUG}/project/${TENDERLY_PROJECT_SLUG}/simulate' \
  -H 'X-Access-Key: ${TENDERLY_ACCESS_KEY}' \
  ...

Learn how to generate API access tokens at Tenderly Docs.

Path Parameters

accountSlug
string
required

Account ID or slug

projectSlug
string
required

Project ID or slug

Body

application/json

List of environment IDs to delete

Request body for batch-deleting environments

environment_ids
string<uuid>[]
required

List of environment IDs to delete

Example:
[
  "d4e5f6a7-b8c9-0123-def1-234567890123",
  "e5f6a7b8-c9d0-1234-ef12-345678901234"
]

Response

Environments deleted successfully