pub async fn delete_files(catalog: &PreservedCatalog, files: &[Path]) -> Result<()> {
    let store = catalog.object_store();

    for path in files {
        info!(path = %path.display(), "Delete file");
        store.delete(path).await.context(WriteError)?;
    }

    info!(n_files = files.len(), "Finished deletion, removed files.");

    Ok(())
}
/// Delete all `files` from the store linked to the preserved catalog.
///
/// A file might already be deleted (or entirely absent) when this method is called. This will NOT result in an error.
///
/// # Locking / Concurrent Actions
/// File creation and catalog modifications can be done while calling this method. Even
/// [`get_unreferenced_parquet_files`] can be called while is method is in-progress.
Delete all `files` from the store linked to the preserved catalog.
A file might already be deleted (or entirely absent) when this method is called. This will NOT result in an error.
Delete all ` files ` from the store linked to the preserved catalog . A file might already be deleted ( or entirely absent ) when this method is called . This will NOT result in an error .
pub async fn delete_files(catalog: &PreservedCatalog, files: &[Path]) -> Result<()> {
    let store = catalog.object_store();
    for path in files {
        info!(path = %path.display(), "Delete file");
        store.delete(path).await.context(WriteError)?;
    }
    info!(n_files = files.len(), "Finished deletion, removed files.");
    Ok(())
}
pub async fn delete_files ( catalog : & PreservedCatalog , files : & [ Path ] ) -> Result < ( ) > { let store = catalog . object_store ( ) ; for path in files { info ! ( path path display ( ) " " ) ; store . delete ( path ) . await . context ( WriteError ) ? ; } info ! ( n_files files len ( ) " " ) ; Ok ( ( ) ) }
Delete all `files` from the store linked to the preserved catalog.
Delete all ` files ` from the store linked to the preserved catalog .
catalog
&PreservedCatalog
files
&[Path]
catalog
&PreservedCatalog
files
&[Path]
locking / concurrent actions
File creation and catalog modifications can be done while calling this method. Even
[`get_unreferenced_parquet_files`] can be called while is method is in-progress.
File creation and catalog modifications can be done while calling this method . Even [ ` get_unreferenced_parquet_files ` ] can be called while is method is in - progress .