---
metadata:
  - name: generator
    content: Diplodoc Platform v5.70.2
alternate:
  - https://ytsaurus.tech/docs/en/flow/devops/vanilla/pipeline-operations.md
  - https://ytsaurus.tech/docs/ru/flow/devops/vanilla/pipeline-operations.md
  - href: https://ytsaurus.tech/docs/en/flow/devops/vanilla/pipeline-operations.md
    type: text/markdown
    title: Markdown version
  - href: https://ytsaurus.tech/docs/en/llms.txt?revision=0987aa47985046d89a7b7ec44c4bbc08e6a3b783
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://ytsaurus.tech/docs/en/llms.txt?revision=0987aa47985046d89a7b7ec44c4bbc08e6a3b783

# Pipeline operations in YTsaurus Flow

After the [initial deployment](https://ytsaurus.tech/docs/en/flow/devops/vanilla/initial-deploy.md), you manage the pipeline through the [CLI](https://ytsaurus.tech/docs/en/flow/tools/cli.md). The main operations are start, stop, and pause:

* `start-pipeline` — start the pipeline;
* `stop-pipeline` — stop the pipeline through `draining` mode (a full flush of the intermediate buffers);
* `pause-pipeline` — stop the pipeline immediately.

For more about pipeline states, see the [glossary](https://ytsaurus.tech/docs/en/flow/concepts/glossary.md#start-stop-pause-pipeline).

These commands control the pipeline state, not the Vanilla operation itself: stopping the operation and recreating it when a new release is deployed are described in [Updates and releases](https://ytsaurus.tech/docs/en/flow/devops/vanilla/releases.md).

## Remove a pipeline completely {#remove}

Removing a pipeline node recursively deletes the Flow internal tables under that node. User-managed external state tables outside the node remain and require a separate removal decision. Take `<operation-id>` from the pipeline's Vanilla operation page. Confirm that it and the pipeline path identify the deployment you intend to remove, then abort the operation and recursively remove the node:

```bash
yt --proxy <cluster> abort-op <operation-id>
yt --proxy <cluster> remove -r //path/to/pipeline
```

Immediately after aborting, `yt --proxy <cluster> remove -r` may report `Cannot take "exclusive" lock ... leader_controller_lock`. The former leader's master transaction still holds the lock. Wait for the lock count to become zero, then retry removal:

```bash
yt --proxy <cluster> get //path/to/pipeline/leader_controller_lock/@lock_count
```

The operation is complete when `yt --proxy <cluster> remove -r` succeeds and the pipeline node no longer exists.

## See also

- [YTsaurus Flow CLI](https://ytsaurus.tech/docs/en/flow/tools/cli.md)
- [Initial deployment](https://ytsaurus.tech/docs/en/flow/devops/vanilla/initial-deploy.md)
- [Updates and releases](https://ytsaurus.tech/docs/en/flow/devops/vanilla/releases.md)
- [Security and access](https://ytsaurus.tech/docs/en/flow/devops/vanilla/security.md)
- [Spec and DynamicSpec](https://ytsaurus.tech/docs/en/flow/concepts/spec.md)
