Delete a data view Generally available; added in 9.6.0

DELETE /api/data_views/v2/{id}

Spaces method and path for this operation:

delete /s/{space_id}/api/data_views/v2/{id}

Refer to Spaces for more information.

Permanently deletes a data view by ID. You can't recover a deleted data view.

[Required authorization] Route required privileges: indexPatterns:manage.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • id string Required

    The ID of the data view to delete.

    Minimum length is 1, maximum length is 1000.

Responses

  • 204

    deleted

  • 403

    forbidden

  • 404

    not found

DELETE /api/data_views/v2/{id}
curl \
 --request DELETE 'https://localhost:5601/api/data_views/v2/{id}' \
 --header "Authorization: $API_KEY" \
 --header "kbn-xsrf: true"