DELETE /admin/pre-receive-environments/:pre_receive_environment_id
Status: 204 No Content
If you attempt to delete an environment that cannot be deleted, you will get a response like this:
Status: 422 Unprocessable Entity
{
"message": "Validation Failed",
"errors": [
{
"resource": "PreReceiveEnvironment",
"code": "custom",
"message": "Cannot modify or delete the default environment"
}
]
}
The possible error messages are: