---
title: Remove an InfluxDB stack
description: Use the influx stacks remove command to remove an InfluxDB stack and all its associated resources.
url: https://docs.influxdata.com/influxdb/v2/tools/influxdb-templates/stacks/remove/
estimated_tokens: 507
product: InfluxDB OSS v2
version: v2
---

# Remove an InfluxDB stack

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 [`influx stacks remove` command](/influxdb/v2/reference/cli/influx/stacks/remove/) to remove an InfluxDB stack and all its associated resources.

**Provide the following:**

-   Organization name or ID
-   Stack ID

```sh
# Syntax
influx stacks remove -o <org-name> --stack-id=<stack-id>

# Example
influx stacks remove \
  -o example-org \
  --stack-id=12ab34cd56ef
```

#### Related

-   [influx stacks remove](/influxdb/v2/reference/cli/influx/stacks/remove/)
