docs-v2/content/enterprise_influxdb/v1/tools/influxd-ctl/truncate-shards.md

1.1 KiB

title description menu weight related
influxd-ctl truncate-shards The `influxd-ctl truncate-shards` command truncates all shards that are currently being written to (also known as "hot" shards) and creates new shards to write new data to.
enterprise_influxdb_v1
parent
influxd-ctl
201
/enterprise_influxdb/v1/administration/manage/clusters/rebalance/
/enterprise_influxdb/v1/tools/influxd-ctl/show-shards/

The influxd-ctl truncate-shards command truncates all shards that are currently being written to (also known as "hot" shards) and creates new shards to write new data to.

Usage

influxd-ctl truncate-shards [flags]

Flags

Flag Description
-delay Duration from now to truncate shards (default is 1m0s)

{{% caption %}} Also see influxd-ctl global flags. {{% /caption %}}

Examples

Truncate shards 3 minutes after command execution
influxd-ctl truncate-shards -delay 3m