> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# CANCEL REFRESH MATERIALIZED VIEW

> CANCEL REFRESH MATERIALIZED VIEW cancels a refresh task for an asynchronous materialized view.

CANCEL REFRESH MATERIALIZED VIEW cancels a refresh task for an asynchronous materialized view.

**Tip**

This operation requires the REFRESH privilege on the target materialized view.

## Syntax

```SQL theme={null}
CANCEL REFRESH MATERIALIZED VIEW [<database_name>.]<materialized_view_name> [FORCE]
```

## Parameters

| **Parameter** | **Required** | **Description** |
| - | - | - |
| database\_name | No | Name of the database where the materialized view resides. If this parameter is not specified, the current database is used. |
| materialized\_view\_name | Yes | Name of the materialized view. |
| FORCE | NO | Forces to cancel the running materialized view refresh task. |

## Examples

Example 1: Cancel the refresh task for the ASYNC refresh materialized view `lo_mv1`.

```SQL theme={null}
CANCEL REFRESH MATERIALIZED VIEW lo_mv1;
CANCEL REFRESH MATERIALIZED VIEW lo_mv1 FORCE;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.