pub async fn wipe(
        object_store: &ObjectStore,
        server_id: ServerId,
        db_name: &str,
    ) -> Result<()> {
        for (path, _file_type, _revision_counter, _uuid) in
            list_files(object_store, server_id, db_name).await?
        {
            object_store.delete(&path).await.context(Write)?;
        }

        Ok(())
    }
/// Deletes catalog.
///
/// **Always create a backup before wiping your data!**
///
/// This also works for broken catalogs. Also succeeds if no catalog is present.
///
/// Note that wiping the catalog will NOT wipe any referenced parquet files.
Deletes catalog.
Always create a backup before wiping your data!

This also works for broken catalogs. Also succeeds if no catalog is present.

Note that wiping the catalog will NOT wipe any referenced parquet files.
Deletes catalog . Always create a backup before wiping your data! This also works for broken catalogs . Also succeeds if no catalog is present . Note that wiping the catalog will NOT wipe any referenced parquet files .
pub async fn wipe(
        object_store: &ObjectStore,
        server_id: ServerId,
        db_name: &str,
    ) -> Result<()> {
        for (path, _file_type, _revision_counter, _uuid) in
            list_files(object_store, server_id, db_name).await?
        {
            object_store.delete(&path).await.context(Write)?;
        }
        Ok(())
    }
pub async fn wipe ( object_store : & ObjectStore , server_id : ServerId , db_name : & str , ) -> Result < ( ) > { for ( path , _file_type , _revision_counter , _uuid ) in list_files ( object_store , server_id , db_name ) . await ? { object_store . delete ( & path ) . await . context ( Write ) ? ; } Ok ( ( ) ) }
Deletes catalog.
Deletes catalog .
object_store
&ObjectStore
server_id
ServerId
db_name
&str
object_store
&ObjectStore
server_id
ServerId
db_name
&str