Skip to main content

Delete Environment

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}

Request example

curl -X DELETE "$AGENTSTUDIO_URL/environments/env_xxx" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response example

{
  "id": "env_xxx",
  "type": "environment_deleted",
  "request_id": "xxx"
}

Response fields

FieldTypeDescription
idstringThe deleted environment ID
typestringFixed as environment_deleted
request_idstringUnique identifier for this request
Managed Agent API
Flow Agent API
Sandbox API
RAG API
Long-term Memory
ParseX API
Security API
Framework Integration