Delete a space

DELETE /api/spaces/space/{id}

When you delete a space, all saved objects that belong to the space are automatically deleted, which is permanent and cannot be undone.

Headers

  • The version of the API to use

    Value is 2023-10-31. Default value is 2023-10-31.

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • id string Required

    The space identifier.

Responses

  • Indicates a successful call.

  • Indicates that the request failed.

DELETE /api/spaces/space/{id}
curl \
 -X DELETE https://localhost:5601/api/spaces/space/{id} \
 -H "elastic-api-version: 2023-10-31" \
 -H "kbn-xsrf: true"