Skip to main content

vsdb_ns_destroy

Function vsdb_ns_destroy 

Source
pub fn vsdb_ns_destroy(id: u64) -> Result<(), VsdbError>
Expand description

Destroys a namespace: removes its registry entry, then deletes its whole directory tree — O(1) bulk reclaim.

The target must not be open in this process (vsdb_ns_close it first). A crash between the registry update and the tree removal leaves an orphaned-but-harmless dir.