[Yandex Cloud documentation](../../../../index.md) > [Yandex DataLens](../../../index.md) > [Yandex DataLens Platform](../../index.md) > SQL editor > History

# Working with query history in Yandex DataLens Platform

SQL Editor's query history allows you to:

* [View executed queries](#view-executed-query).
* [Rerun a query](#re-run-query).
* [Delete a historical query](#remove-query-from-history).

## Viewing an executed query {#view-executed-query}

To view executed queries, go to **Query history**.

To view a specific query, select it from the history. The selected query will show up in the data panel.


{% note tip %}

To find specific queries:
* Type the table or command name in the search field.
* Apply filters by clicking ![image](../../../../_assets/console-icons/funnel.svg) and selecting the query status and time interval.

{% endnote %}

## Rerunning a query {#re-run-query}

To rerun an executed query:

1. Go to the **Query history** section.

1. Select a query: it will show up in the data panel.

1. Click **Copy to editor**.

1. Optionally, update the query parameters.

1. Click **Execute**.

## Deleting a historical query {#remove-query-from-history}

1. Go to the **Query history** section.

1. Click ![image](../../../../_assets/console-icons/ellipsis.svg) to the right of the query you need and select **Delete**.

1. In the window that opens, click **Apply**.