Skip to main content

remove_shadow_repository

Function remove_shadow_repository 

Source
pub fn remove_shadow_repository(shadow: &Path) -> Result<(), RecoveryError>
Expand description

What: Remove a shadow repository, treating an absent one as removed. Why: removeShadowRepository: a shadow never outlives its transaction directory.

In TS you’d write (pseudocode):

await rm(shadowPath, { recursive: true, force: true });