docs-v2/content/influxdb3/enterprise/admin/file-index/delete.md

2.2 KiB

title seotitle description menu weight influxdb3/enterprise/tags related list_code_example
Delete a custom file index Delete a custom file index in {{< product-name >}} Use the [`influxdb3 delete file_index` command](/influxdb3/enterprise/reference/cli/influxdb3/delete/file_index/) to delete a custom file indexing strategy from a database or a table and revert to the default indexing strategy.
influxdb3_enterprise
parent
Manage file indexes
106
indexing
/influxdb3/enterprise/reference/cli/influxdb3/delete/file_index/
<!--pytest.mark.skip--> ```bash influxdb3 delete file_index \ --database example-db \ --token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \ --table wind_data ```

Use the influxdb3 delete file_index command to delete a custom file indexing strategy from a database or a table and revert to the default indexing strategy.

Provide the following:

  • Token (--token): ({{< req >}}) Your {{% token-link "admin" %}}. You can also use the INFLUXDB3_AUTH_TOKEN environment variable to specify the token.
  • Database (-d, --database): ({{< req >}}) The name of the database to apply remove the custom index from. You can also use the INFLUXDB3_DATABASE_NAME environment variable to specify the database.
  • Table (-t, --table): The name of the table to remove the custom index from. If no table is specified, the custom indexing strategy is removed from all tables in the specified database.

{{% code-placeholders "AUTH_TOKEN|DATABASE|TABLE|COLUMNS" %}}

influxdb3 delete file_index \
  --host http://localhost:8585 \
  --database DATABASE_NAME \
  --table TABLE_NAME \

{{% /code-placeholders %}}

Replace the following placeholders with your values:

  • {{% code-placeholder-key %}}AUTH_TOKEN{{% /code-placeholder-key %}}: your {{% token-link "admin" %}}
  • {{% code-placeholder-key %}}DATABASE_NAME{{% /code-placeholder-key %}}: the name of the database to remove the custom file index from
  • {{% code-placeholder-key %}}TABLE_NAME{{% /code-placeholder-key %}}: the name of the table to remove the custom file index from