Delete a pre-receive environment

DELETE /admin/pre-receive-environments/:pre_receive_environment_id

Response

Status: 204 No Content

Client Errors

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: