You can delete an environment resource, but only if the type attribute is set to SANDBOX. Production environments cannot be deleted. The sample shows the DELETE /environments/{environmentId} operation to delete an environment from the organization.

When successful, the DELETE request returns a code 204 No Content message.