DELETE
/
v1
/
apps
/
{id}
/
environments
Delete Application Environments
curl --request DELETE \
  --url https://api.vertracloud.app/v1/apps/{id}/environments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "keys": [
    {}
  ]
}'
{
  "status": "success",
  "response": [
    {
      "id": "env456",
      "key": "DATABASE_URL",
      "value": "mysql://user:pass@localhost/db",
      "note": null,
      "created_at": "2025-08-14T19:58:00Z"
    }
  ]
}
id
string
required
The ID of the application to delete environment variables from. If the application belongs to an organization, include the organization ID in the format appId-orgId.
keys
array
required
An array of environment variable keys to delete.

Response

status
string
Indicates whether the call was successful. success if successful, error if not.
response
array
An array of remaining environment variable objects after deletion.
{
  "status": "success",
  "response": [
    {
      "id": "env456",
      "key": "DATABASE_URL",
      "value": "mysql://user:pass@localhost/db",
      "note": null,
      "created_at": "2025-08-14T19:58:00Z"
    }
  ]
}

Error Responses

status
string
Indicates whether the call was successful. error if not successful.
code
string
The error code indicating the reason for failure. Possible values:
  • UNAUTHORIZED: The user is not authenticated or lacks sufficient permissions.
  • FORBIDDEN: The user does not have permission to access the application.
  • APP_NOT_FOUND: The specified application does not exist.
  • INVALID_BODY: The request body is not a valid array or is empty.
  • INVALID_KEY: One or more provided keys are invalid or forbidden.
  • ENVIRONMENTS_NOT_FOUND: None of the specified environment variables were found.
{
  "status": "error",
  "code": "UNAUTHORIZED"
}