v.22.7Improvement

Background Cleanup Added for Subdirectories in Store Directory

Added background cleanup of subdirectories in store/. In some cases clickhouse-server might left garbage subdirectories in store/ (for example, on unsuccessful table creation) and those dirs were never been removed. Fixes #33710. #38265 (Alexander Tokmakov).
Added background cleanup of leftover subdirectories in the store/ directory to automatically remove garbage folders created during unsuccessful table operations.

Why it matters

This feature addresses the issue where clickhouse-server might leave orphaned subdirectories in the store/ folder, such as from failed table creations, which were never removed. It helps maintain a cleaner data directory and prevents disk clutter and potential confusion from leftover files.

How to use it

The background cleanup is performed automatically by the server; no manual intervention or configuration is required to enable this feature.