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

# CANCEL LOAD

> CANCEL LOAD cancels a given load job: Broker Load, Spark Load, or INSERT.

CANCEL LOAD cancels a given load job: [Broker Load](/documents/4.2/sql-reference/sql-statements/loading_unloading/BROKER_LOAD.md), [Spark Load](/documents/4.2/sql-reference/sql-statements/loading_unloading/SPARK_LOAD.md), or [INSERT](/documents/4.2/sql-reference/sql-statements/loading_unloading/INSERT.md). A load job in the `PREPARED`, `CANCELLED` or `FINISHED` state cannot be canceled.

Canceling a load job is an asynchronous process. You can use the [SHOW LOAD](/documents/4.2/sql-reference/sql-statements/loading_unloading/SHOW_LOAD.md) statement to check whether a load job is successfully canceled. The load job is successfully canceled if the value of `State` is `CANCELLED` and the value of `type` (displayed in `ErrorMsg`) is `USER_CANCEL`.

## Syntax

```SQL theme={null}
CANCEL LOAD
[FROM db_name]
WHERE LABEL = "label_name"
```

## Parameters

| **Parameter** | **Required** | **Description** |
| - | - | - |
| db\_name | No | The name of the database to which the load job belongs. If this parameter is not specified, a load job in your current database is canceled by default. |
| label\_name | Yes | The label of the load job. |

## Examples

Example 1: Cancel the load job whose label is `example_label` in the current database.

```SQL theme={null}
CANCEL LOAD
WHERE LABEL = "example_label";
```

Example 2: Cancel the load job whose label is `example_label` in the `example_db` database.

```SQL theme={null}
CANCEL LOAD
FROM example_db
WHERE LABEL = "example_label";
```


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