2020-07-23 20:25:40 +00:00
|
|
|
---
|
|
|
|
title: Remove a Telegraf configuration
|
|
|
|
description: >
|
2020-07-23 21:45:40 +00:00
|
|
|
Use the InfluxDB UI or the [`influx` CLI](/v2.0/reference/cli/influx/)
|
2020-07-23 20:25:40 +00:00
|
|
|
to remove Telegraf configurations from InfluxDB.
|
|
|
|
weight: 104
|
|
|
|
menu:
|
2020-07-28 22:34:16 +00:00
|
|
|
influxdb_2_0:
|
2020-07-23 20:25:40 +00:00
|
|
|
name: Remove a config
|
|
|
|
parent: Telegraf configurations
|
|
|
|
aliases:
|
|
|
|
- /v2.0/write-data/no-code/use-telegraf/auto-config/delete-telegraf-config/
|
|
|
|
- /v2.0/collect-data/use-telegraf/auto-config/delete-telegraf-config
|
2020-07-28 21:59:56 +00:00
|
|
|
- /v2.0/telegraf-configs/remove/
|
2020-07-23 20:25:40 +00:00
|
|
|
---
|
|
|
|
|
2020-07-23 21:45:40 +00:00
|
|
|
Use the InfluxDB user interface (UI) or the [`influx` CLI](/v2.0/reference/cli/influx/)
|
2020-07-23 20:25:40 +00:00
|
|
|
to remove Telegraf configurations from InfluxDB.
|
|
|
|
|
|
|
|
{{% note %}}
|
|
|
|
Deleting a Telegraf configuration does not affect _**running**_ Telegraf agents.
|
|
|
|
However, if an agents stops, it needs a new configuration to start.
|
|
|
|
{{% /note %}}
|
|
|
|
|
2020-07-23 21:45:40 +00:00
|
|
|
To remove a Telegraf configuration, do one of the following:
|
|
|
|
|
2020-07-23 20:25:40 +00:00
|
|
|
- [Use the InfluxDB UI](#use-the-influxdb-ui)
|
|
|
|
- [Use the `influx` CLI](#use-the-influx-cli)
|
|
|
|
|
|
|
|
## Use the InfluxDB UI
|
|
|
|
|
|
|
|
1. In the navigation menu on the left, select **Data** (**Load Data**) > **Telegraf**.
|
|
|
|
|
|
|
|
{{< nav-icon "load data" >}}
|
|
|
|
|
|
|
|
2. Hover over the configuration you want to delete, click the **{{< icon "trash" >}}**
|
2020-07-23 21:45:40 +00:00
|
|
|
icon, and then click **Delete**.
|
2020-07-23 20:25:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Use the influx CLI
|
|
|
|
Use the [`influx telegrafs rm` command](/v2.0/reference/cli/influx/telegrafs/rm/)
|
|
|
|
to remove a Telegraf configuration from InfluxDB.
|
|
|
|
|
|
|
|
Provide the following:
|
|
|
|
|
|
|
|
- **Telegraf configuration ID** (shown in the output of `influx telegrafs`)
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# Syntax
|
|
|
|
influx telegrafs rm -i <telegraf-config-id>
|
|
|
|
|
|
|
|
# Example
|
|
|
|
influx telegrafs rm -i 12ab34de56fg78hi
|
|
|
|
```
|