v.19.14New Feature

Support for Removing of Detached Parts

Support for removing of detached parts. Syntax: ALTER TABLE <table_name> DROP DETACHED PART '<part_id>'. #6158 (tavplubix)
Added support for removing detached parts from ClickHouse tables using the syntax ALTER TABLE <table_name> DROP DETACHED PART '<part_id>'.

Why it matters

This feature allows users to clean up detached parts manually, preventing accumulation of unused parts that can consume disk space and impact performance. It provides better control over managing table parts and maintaining storage hygiene.

How to use it

Use the ALTER TABLE statement with the DROP DETACHED PART clause to remove a specific detached part by its <part_id>. For example:
ALTER TABLE <table_name> DROP DETACHED PART '<part_id>'