pub fn remove_bank_snapshot<P>(slot: Slot, bank_snapshots_dir: P) -> Result<()>
where
    P: AsRef<Path>,
{
    let bank_snapshot_dir = get_bank_snapshots_dir(&bank_snapshots_dir, slot);
    fs::remove_dir_all(bank_snapshot_dir)?;
    Ok(())
}
/// Remove the snapshot directory for this slot
Remove the snapshot directory for this slot
Remove the snapshot directory for this slot
pub fn remove_bank_snapshot<P>(slot: Slot, bank_snapshots_dir: P) -> Result<()>
where
    P: AsRef<Path>,
{
    let bank_snapshot_dir = get_bank_snapshots_dir(&bank_snapshots_dir, slot);
    fs::remove_dir_all(bank_snapshot_dir)?;
    Ok(())
}
pub fn remove_bank_snapshot < P > ( slot : Slot , bank_snapshots_dir : P ) -> Result < ( ) > where P : AsRef < Path > , { let bank_snapshot_dir = get_bank_snapshots_dir ( & bank_snapshots_dir , slot ) ; fs :: remove_dir_all ( bank_snapshot_dir ) ? ; Ok ( ( ) ) }
Remove the snapshot directory for this slot
Remove the snapshot directory for this slot
slot
Slot
bank_snapshots_dir
P