-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Our goal is to permanently remove table data in order to reclaim disk space on resource-constrained edge devices. If the described behavior is expected, we are looking for the recommended way to achieve this.
Retention policies are not suitable for our schema and use case.
Steps to reproduce:
List the minimal actions needed to reproduce the behaviour.
- Start InfluxDB 3 Core (Serverless) version influxdb-3.8-core using the Docker configuration provided below.
- Create a database and a table.
- Insert data into the table until noticeable disk usage is observed.
- Delete the table via the CLI using the command:
influxdb3 delete table my_table \
--database my_database \
--hard-delete now \
--host http://localhost:8181 \
--token my_token- Query the database data and metadata, and observe disk usage on the host.
Expected behaviour:
The specified table and its underlying data should be immediately and permanently removed. Disk usage on the host should decrease accordingly, as the data is no longer stored.
Actual behaviour:
After executing the delete command:
- The original table (my_table) is no longer queryable.
- Disk usage on the host remains unchanged.
- A new table named my_table_ appears.
- Querying this new table returns all of the previously “deleted” data.
This behavior was observed consistently when using either filesystem-based storage or S3 object storage (MinIO).
Config:
Docker Compose Configuration used:
influxdb-test:
image: influxdb:3.8-core
container_name: influxdb-test
ports:
- "8181:8181"
volumes:
- ./influxdb-data:/var/lib/influxdb3
command:
- influxdb3
- serve
- --without-auth
- --node-id=testnode
- --object-store=file
- --data-dir=/var/lib/influxdb3