⚠️ This documentation pertains to a preview endpoint. This feature is not yet ready for API consumption and may change.
For inquiries or feedback, please contact us at Glean.

Delete query history

post/deletequeryhistory

Remove one or more queries from a user's query history.

SecurityBearerAuth
Request
header Parameters
X-Glean-Auth-Type
string

Auth type being used to access the endpoint (should be non-empty only for global tokens).

X-Scio-Actas
string <email>

Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).

Request Body schema: application/json
required

Delete query history request

queries
Array of strings

Queries to delete.

Responses
200

OK

Response Schema: application/json
object (DeleteQueryHistoryError)
400

Invalid request

401

Not Authorized

429

Too Many Requests

Request samples
application/json
{
  • "queries": [
    • "string"
    ]
}
Response samples
application/json
{
  • "error": {
    • "errorType": "DELETION_FAILED"
    }
}