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

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • id string Required

    The space identifier.

Responses

  • 204

    Indicates a successful call.

  • 404

    Indicates that the request failed.

DELETE /api/spaces/space/{id}
curl \ --request DELETE 'https://<KIBANA_URL>/api/spaces/space/{id}' \ --header "Authorization: $API_KEY" \ --header "kbn-xsrf: true"