Skip to content

Hard-Deleted table not reclaiming disk space in InfluxDB 3 Core #27200

@sevibals

Description

@sevibals

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.

  1. Start InfluxDB 3 Core (Serverless) version influxdb-3.8-core using the Docker configuration provided below.
  2. Create a database and a table.
  3. Insert data into the table until noticeable disk usage is observed.
  4. 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
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions