Delete an environment.
An account token, server token, or user token may be used to run this endpoint.
- id (required): The ID of the environment.
- No content returned, only the status code. See the REST API Standard Responses page.
- Environment Invalid: The standard error structure defines this error as invalid parameters, with an invalid ID linked to the parameter that designates the environment ID. In this context, it means that the ID given for an environment was not valid.
- Environment Not Found: This error means that an environment with the given ID was not found. This is distinct from an invalid environment ID being specified; this means that the environment ID once existed, but no longer does.
DELETE https://ioe.droplit.io/api/environments/ENVIRONMENT-ID HTTP/1.1 authorization: TOKEN
droplit environment delete ENVIRONMENT-ID