added removeNamespace to KVStore

This commit is contained in:
Djeeberjr 2023-05-25 23:44:08 +02:00
parent c4260aa719
commit eb39131056

View File

@ -16,6 +16,11 @@ class KVStore {
this.namespace = namespace;
}
public static function removeNamespace(namespace: String): Void {
var nsFile = getNamespaceFile(namespace);
FS.delete(nsFile);
}
private static function getNamespaceFile(namespace: String): String {
return '/var/ns/$namespace';
}