Delete an Elasticsearch project

DELETE /api/v1/serverless/projects/elasticsearch/{id}

Headers

  • If-Match string

    ETag value fetched in a previous GET project request. Used to prevent simultaneous updates

Path parameters

  • id string Required

    The ID of the project

    Format should match the following pattern: ^[a-z0-9]{32}$.

Responses

  • Project deletion scheduled.

    Hide headers attribute Show headers attribute
  • 404 application/json

    Not Found

    Hide response attribute Show response attribute object

    A non-empty list of errors.

    • errors array[object] Required
      Hide errors attributes Show errors attributes object

      An error response returned by the API.

      • message string Required

        A human-readable message of the error.

      • code string Required

        An identifier for this type of error.

DELETE /api/v1/serverless/projects/elasticsearch/{id}
curl \
 -X DELETE https://api.elastic-cloud.com/api/v1/serverless/projects/elasticsearch/{id} \
 -H "If-Match: string"
Response examples (404)
{
  "errors": [
    {
      "message": "Explicative error message",
      "code": "code.error"
    }
  ]
}