removeStorage abstract method

void removeStorage(
  1. String name
)

Removes the storage and all its persisted data. If the storage does not exist, this is a no-op. Note: Existing handles to this storage become invalid after removal and further operations may fail. name Storage name (case-sensitive).

Example:

// Remove storage and all its data
_storageManager!.removeStorage("test_storage");
print("Removed test storage");

Implementation

void removeStorage(String name);