IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Delete saved query API
editDelete saved query API
edit[preview] This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Delete saved queries.
Once you delete a saved query, it cannot be recovered.
Request
editDELETE <kibana host>:<port>/api/osquery/saved_queries/<id>
DELETE <kibana host>:<port>/s/<space_id>/api/osquery/saved_queries/<id>
Path parameters
edit-
space_id
-
(Optional, string) The space identifier. When
space_id
is not provided in the URL, the default space is used. -
id
- (Required, string) The ID of the saved query you want to delete.
Response code
edit-
200
- Indicates the saved query is deleted. Returns an empty response body.
Example
editDelete a saved query object with the 42ba9c50-0cc5-11ed-aa1d-2b27890bc90d
ID:
$ curl -X DELETE api/osquery/saved_queries/42ba9c50-0cc5-11ed-aa1d-2b27890bc90d