From f183fe14c384a1ee146aad669b82adc2563d3346 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Tue, 24 Nov 2026 13:33:47 +0800 Subject: [PATCH] docs: explain storage reclamation after dropping columns (#5174) Dropping a column can leave its data in files that the current table still needs. The schema guide now explains how compaction and retention determine when cleanup can reclaim those data files and their ordinary Blob v2 sidecars. --- docs/web/management/table.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/web/management/table.mdx b/docs/web/management/table.mdx index 0beb9836b..8c42f2122 100644 --- a/docs/web/management/table.mdx +++ b/docs/web/management/table.mdx @@ -1519,6 +1519,12 @@ but following the conventions keeps your tables consistent with Enterprise tooli You can remove columns using the [`drop_columns`](https://lancedb.github.io/lancedb/python/python/#lancedb.table.Table.drop_columns) method in Python, [`dropColumns`](https://lancedb.github.io/lancedb/js/classes/Table/#dropcolumns) in TypeScript/JavaScript, or `drop_columns` in Rust. +If a data file still stores other columns, the table keeps it and its ordinary +Blob v2 sidecar files when you drop a column or add a new one with the same name. +Compaction can rewrite the current columns into new data files. Cleanup can +reclaim the superseded data files and their sidecars once the applicable retention +window has passed and no retained version, including any tagged version, references +those files. See [Garbage Collection](/maintenance/cleanup). #### Set Up the example table {#schema-set-up-the-example-table-3}