Spaces method and path for this operation:
delete /s/{space_id}/api/discover_sessions/{id}
Refer to Spaces for more information.
Permanently deletes a Discover session by ID.
DELETE
/api/discover_sessions/{id}
cURL
curl -X DELETE "${KIBANA_URL}/api/discover_sessions/web-log-requests" \
-H "Authorization: ApiKey ${API_KEY}" \
-H "elastic-api-version: 2023-10-31" \
-H "kbn-xsrf: true"
DELETE kbn:/api/discover_sessions/web-log-requests