delete https://ioe.droplit.io/v0/api/environments/
Details
Delete an environment.
An account token, server token, or user token may be used to run this endpoint.
Parameters
path
- id (required): The ID of the environment.
Responses
200
- No content returned, only the status code. See the REST API Standard Responses page.
400
- 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.
404
- 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.
Examples
HTTP
DELETE https://ioe.droplit.io/api/environments/ENVIRONMENT-ID HTTP/1.1
authorization: TOKEN
Droplit Console
droplit environment delete ENVIRONMENT-ID
Droplit SDK
droplit.environments.deleteEnvironment("ENVIRONMENT-ID");