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:


Figure 2. clearRecentQueries

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


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

      input: ClearRecentQueriesInput!
   ): boolean!

Given Datatypes

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

Table: ClearRecentQueriesInput

viewOrRepositoryNamestringyes Name of the view or repository.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.