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

# lean config unset

[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 config unset

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

## Introduction

Unset a configurable option.

```
$ lean config unset [OPTIONS] KEY
```

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

Unsets the value of a configurable option in your [global configuration](https://www.quantconnect.com/docs/v2/lean-cli/initialization/configuration.md#02-Global-Configuration) directory. The command aborts with a descriptive error message if the given value is invalid for the given key.

## Arguments

The `lean config unset` command expects the following arguments:

| Argument | Description |
| --- | --- |
| `<key>` | The key of the option to unset. |

## Options

The `lean config unset` command supports the following options:

| Option | Description |
| --- | --- |
| `--verbose` | Enable debug logging |
| `--help` | Display the help text of the `lean config unset` command and exit |
