---
title: influxd downgrade
description: The influxd downgrade command downgrades the metadata schema used by influxd to match the schema of an older release.
url: https://docs.influxdata.com/influxdb/v2/reference/cli/influxd/downgrade/
estimated_tokens: 630
product: InfluxDB OSS v2
version: v2
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb/v2/reference/cli/influxd/downgrade/
date: '2023-11-06T15:53:12-07:00'
lastmod: '2023-11-06T15:53:12-07:00'
---

This page documents an earlier version of InfluxDB OSS.[InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a
copy of the database file doesn’t expose usable tokens. Existing
tokens are hashed on first startup and the original strings can’t
be recovered afterward — **capture any plaintext tokens you still
need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

Use the `influxd downgrade` command to downgrade the metadata schema used by`influxd` to match the metadata schema of a older release.

InfluxDB does not guarantee backwards-compatibility with earlier releases.
Attempting to start an older `influxd` binary with a BoltDB or SQLite file that
has been migrated to a newer schema will result in a startup error.
This command downgrades metadata schemas to match the schemas of an older release
and allows the older `influxd` binary to boot successfully.

> [!Note]
> Run this command **prior** to downgrading the `influxd` binary.

## Usage

```sh
influxd downgrade [flags] <target-version>
```

## Flags

|Flag|               |                                  Description                                   |Input type|
|----|---------------|--------------------------------------------------------------------------------|----------|
|    | `--bolt-path` |       Path to BoltDB database (default is `~/.influxdbv2/influxd.bolt`)        |  string  |
|`-h`|   `--help`    |                              Help for `downgrade`                              |          |
|    | `--log-level` |           Log level (`debug`, `info` *(default*), `warn` or `error`)           |  string  |
|    |`--sqlite-path`|Path to SQLite database (default is `influxd.sqlite` in the bolt path directory)|  string  |

## Examples

##### Downgrade to InfluxDB 2.0

```sh
influxd downgrade 2.0
```

#### Related

* [Downgrade InfluxDB](/influxdb/v2/install/upgrade/downgrade/)
| Flag |  | Description | Input type |
| --- | --- | --- | --- |
| Flag |  | Description | Input type |
|  | --bolt-path | Path to BoltDB database (default is  ~/.influxdbv2/influxd.bolt ) | string |
| -h | --help | Help for  downgrade |  |
|  | --log-level | Log level ( debug ,  info   (default ),  warn  or  error ) | string |
|  | --sqlite-path | Path to SQLite database (default is  influxd.sqlite  in the bolt path directory) | string |
