Skip to main content

delete_recursively

Function delete_recursively 

Source
pub async fn delete_recursively<S: ObjectStoreDeleteExt + ObjectStoreListExt>(
    path: &Path,
    store: &S,
    concurrency: NonZeroUsize,
) -> Result<Vec<()>>
Expand description

Deletes every object under path. Every SUCCESS_MARKER under path is deleted before the other objects, so a delete that stops partway does not leave the directory listed as complete without its files. If deleting a marker fails, nothing else is deleted.