block-db 0.2.0

Local, multi-threaded, durable byte DB.
Documentation
1
2
3
4
5
6
7
8
9
10
// Authors: Robert Lopez

use super::DataFile;
use crate::{error::Error, util::fs::delete_directory};

impl DataFile {
    pub async fn delete(&mut self) -> Result<(), Error> {
        delete_directory(&self.directory).await
    }
}