From eb391310566c51258211a3447ba84275523f948b Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Thu, 25 May 2023 23:44:08 +0200 Subject: [PATCH] added removeNamespace to KVStore --- src/lib/KVStore.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/KVStore.hx b/src/lib/KVStore.hx index 25b7f2f..ab210f8 100644 --- a/src/lib/KVStore.hx +++ b/src/lib/KVStore.hx @@ -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'; }