---
title: "lean live liquidate"
description: "API reference for the command `lean live liquidate` in command line console."
canonical: https://www.quantconnect.com/docs/v2/lean-cli/api-reference/lean-live-liquidate
markdown: https://www.quantconnect.com/docs/v2/lean-cli/api-reference/lean-live-liquidate.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/05%20Lean%20CLI/99%20API%20Reference/38%20lean%20live%20liquidate
modified: 2026-10-31
index: https://www.quantconnect.com/llms.txt
---

# lean live liquidate

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Lean CLI](https://www.quantconnect.com/docs/v2/lean-cli.md) > [API Reference](https://www.quantconnect.com/docs/v2/lean-cli/api-reference.md) > lean live liquidate

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Introduction

Liquidate the given symbol from the latest deployment of the given project.

```
$ lean live liquidate [OPTIONS] PROJECT
```

To use the CLI, you must be a member in an [organization](https://www.quantconnect.com/docs/v2/cloud-platform/organizations/tier-features.md) on a paid tier.

## Description

Sends a liquidation command to the latest deployment of the given local live trading project. If you provide the `--ticker`, `--market`, and `--security-type` options, only the matching symbol is liquidated. If you omit those options, all positions in the portfolio are liquidated.

To stop a live deployment without liquidating positions, use [`lean live stop`](https://www.quantconnect.com/docs/v2/lean-cli/api-reference/lean-live-stop.md).

## Arguments

The `lean live liquidate` command expects the following arguments:

| Argument | Description |
| --- | --- |
| `<project>` | The path to the project directory or algorithm file to liquidate. |

## Options

The `lean live liquidate` command supports the following options:

| Option | Description |
| --- | --- |
| `--ticker <string>` | The ticker of the symbol to liquidate |
| `--market <string>` | The market of the symbol to liquidate |
| `--security-type <string>` | The security type of the symbol to liquidate |
| `--lean-config <file>` | The Lean configuration file that should be used (defaults to the nearest lean.json) |
| `--verbose` | Enable debug logging |
| `--help` | Display the help text of the `lean live liquidate` command and exit |
