Delete specific environment
Deletes the specified environment. An environment must be disabled before it can be deleted.
Parameter
Parameter | Type | Description | In | Required |
---|---|---|---|---|
id | string |
The ID of the environment to be deleted. |
path | required |
Response
Response codes
Code | Description |
---|---|
204 | Deleted. Response does not have a body. |
400 | Failed. For example, if an environment is not disabled. |
Response body
A successful request doesn't return any content.
Example
Deletes the environment 19a963a7-b19f-4382-964a-4df674c8eb8e
.
Curl
curl -X DELETE "https://myManaged.cluster.com/api/cluster/v2/environments/19a963a7-b19f-4382-964a-4df674c8eb8e" -H "accept: */*" -H "Authorization: Api-Token abcdefjhij1234567890"
Request URL
https://myManaged.cluster.com/api/cluster/v2/environments/19a963a7-b19f-4382-964a-4df674c8eb8e
Response body
Response does not have a body.
Response code
204