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 fields

id stringThe deleted environment IDtype stringFixed as environment_deletedrequest_id stringUnique identifier for this request

Response example

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