# dflow operations:cancel

> Ask the API to cancel an operation.

Web page: /docs/cli/access/operations-cancel/

This asks the API to cancel an operation that is still running. An operation that already finished is refused.

```bash
dflow operations:cancel ID
```

## Flags

Global flags only. This page does not add a flag.

## What you see

The operation becomes cancelled when the API accepts it.

## When it fails

An operation that already finished is refused.
