Delete the specified environment template.
Endpoint
DELETE /agents/environments/templates/{template_id}
Returns 200 and a delete envelope. After deletion, retrieving or deleting the same template returns 404.
Path parameterstemplate_idstring (required)Environment template IDThis endpoint has no request body or query parameters. | Request example |
Response fieldsidstringDeleted environment template IDobject stringEnvironment template deletion result object type, fixed as agent.environment.template.deleteddeleted booleanWhether deletion succeeded, true when deletion succeeds | Response example |
Error codes
| HTTP status | Error type / code | Solution |
|---|---|---|
401 | authentication_error / invalid_api_key | Send a valid Authorization: Bearer $DASHSCOPE_API_KEY header |
404 | not_found_error / not_found_error | Use an environment template ID that exists in the current workspace |
500 | server_error / server_error | Retry later. If it keeps failing, submit a ticket with x-request-id |