---
title: influxd inspect delete-tsm
description: The influxd inspect delete-tsm command deletes a measurement from a raw TSM file.
url: https://docs.influxdata.com/influxdb/v2/reference/cli/influxd/inspect/delete-tsm/
estimated_tokens: 777
product: InfluxDB OSS v2
version: v2
---

# influxd inspect delete-tsm

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).

The `influxd inspect delete-tsm` command deletes a measurement from a raw TSM file.

## Usage

```sh
influxd inspect delete-tsm [flags]
```

## Flags

| Flag |  | Description | Input Type |
| --- | --- | --- | --- |
| -h | --help | Help for delete-tsm |  |
|  | --measurement | Name of the measurement to delete | string |
|  | --sanitize | Remove all keys with non-printable unicode characters |  |
| -v | --verbose | Enable verbose logging |  |

## Examples

##### Delete a measurement from a TSM file

```sh
influxd inspect delete-tsm \
  --measurement example-measurement
```

##### Remove non-printable unicode characters from all TSM files

```sh
influxd inspect delete-tsm --sanitize
```

[tsm](/influxdb/v2/tags/tsm/)
