Delete Environment
Updated at:
Hard delete: the environment configuration is permanently removed and cannot be recovered. To preserve the configuration, use the archive endpoint instead.
Prerequisites
Endpoint and authentication are configured. See Overview and authentication.
Endpoint
DELETE
/environments/{environment_id}Path parameters
environment_idstringRequiredEnvironment ID, format env_<ULID>
Response fields
idstringThe deleted environment ID
typestringFixed as environment_deleted
request_idstringUnique identifier for this request
Request example
curl -X DELETE "$AGENTSTUDIO_URL/environments/env_xxx" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
client.environments.delete("env_xxx")
client.environments().delete("env_xxx");
Response example
{
"id": "env_xxx",
"type": "environment_deleted",
"request_id": "xxx"
}
Is this page helpful?