Back to Influxdb

Rm

content/shared/influxdb-v2/reference/cli/influx/telegrafs/rm.md

latest1.8 KB
Original Source

The influx telegrafs rm command removes Telegraf configurations from InfluxDB.

Usage

sh
influx telegrafs rm [flags]

Command aliases

rm, remove

Flags

FlagDescriptionInput type{{< cli/mapped >}}
-c--active-configCLI configuration to use for commandstring
--configs-pathPath to influx CLI configurations (default ~/.influxdbv2/configs)stringINFLUX_CONFIGS_PATH
-h--helpHelp for the rm command
--hide-headersHide the table headersINFLUX_HIDE_HEADERS
-i--idTelegraf configuration ID to removestringArray
--jsonOutput data as jsonINFLUX_OUTPUT_JSON
--skip-verifySkip TLS certificate verificationINFLUX_SKIP_VERIFY
-t--tokenAPI tokenstringINFLUX_TOKEN

Examples

{{< cli/influx-creds-note >}}

Remove a Telegraf configuration
sh
influx telegrafs rm --id ab12cd34ef56
Remove multiple Telegraf configurations
sh
influx telegrafs rm \
  --i 0Xx0oox00XXoxxoo1 \
  --i oox0Xx0ox00XXxoo2