drop_table_data

Function drop_table_data 

Source
pub async fn drop_table_data(
    io: &FileIO,
    metadata: &TableMetadata,
    metadata_location: Option<&str>,
) -> Result<()>
Expand description

Deletes all data and metadata files referenced by the given table metadata.

This mirrors the Java implementation’s CatalogUtil.dropTableData. It collects all manifest files, manifest lists, previous metadata files, statistics files, and partition statistics files, then deletes them.

Data files within manifests are only deleted if the gc.enabled table property is true (the default), to avoid corrupting other tables that may share the same data files.