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

# CANCEL BACKUP

> Cancels an ongoing BACKUP task in a specified database.

Cancels an ongoing BACKUP task in a specified database.

## Syntax

```SQL theme={null}
CANCEL BACKUP { FROM <db_name> | FOR EXTERNAL CATALOG }
```

## Parameters

| **Parameter** | **Description** |
| - | - |
| db\_name | Name of the database that the BACKUP task belongs to. |
| FOR EXTERNAL CATALOG | Cancels the ongoing BACKUP task for the external catalog metadata. |

## Examples

Example 1: Cancels the BACKUP task under the database `example_db`.

```SQL theme={null}
CANCEL BACKUP FROM example_db;
```


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