API Stability Long-Term

The clearRecentQueries() GraphQL mutation may be used to clear recent queries for the current user, for a given repository or view.

You can see in the LogScale User Interface, a list of recently run queries or saved queries by clicking on the Queries pull-down menu. Below is a screenshot showing an example of this:

clearRecentQueries

Figure 2. clearRecentQueries


For more information related to recent queries and saving queries, see the Searching Data documentation page.

Syntax

Below is the syntax for the clearRecentQueries() mutation field:

graphql
clearRecentQueries(
      input: ClearRecentQueriesInput!
   ): boolean!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  clearRecentQueries(input:
       { viewOrRepositoryName: "humio" } )
}
Example Responses
Show:
json
{
  "data": {
    "clearRecentQueries": true
  }
}

Given Datatypes

For ClearRecentQueriesInput, it has one parameter that may be given:

Table: ClearRecentQueriesInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 17, 2024
viewOrRepositoryNamestringyes Long-TermName of the view or repository.