Delete an environment

Request

DELETE https://{hostname}:{port}
    /cli/environment/deleteEnvironment?{parameters}
Table 1. Request parameters
Parameter Type Required Description
environment string true Name or ID of the environment
application string false Name or ID of the application; this value is required if you specify the environment name instead of ID
deleteAttachedResources boolean false Specify true to delete all resources in this environment, including all subresources. If this value and 'deleteCloudInstances' is set to true, then all agent objects in use by this environment will be deleted when the agent goes offline. (Optional)
deleteCloudInstances boolean false Specify true to delete any associated instances in the cloud provider; this parameter is valid only for environments that were created dynamically along with the environment (Optional)

Related CLI command: deleteEnvironment.