From b7b09fdfc2cb83bdd8f4abb99e2c621728c4f11c Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 12 Jan 2026 14:20:31 -0500 Subject: admin unshare --- packages/enterprise/script/scrap.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/enterprise/script/scrap.ts (limited to 'packages/enterprise/script') diff --git a/packages/enterprise/script/scrap.ts b/packages/enterprise/script/scrap.ts new file mode 100644 index 000000000..5e985224d --- /dev/null +++ b/packages/enterprise/script/scrap.ts @@ -0,0 +1,15 @@ +import { Storage } from "../src/core/storage" + +// read share id from args +const args = process.argv.slice(2) +if (args.length !== 1) { + console.error("Usage: bun script/scrap.ts ") + process.exit(1) +} +const shareID = args[0] + +await Storage.remove(["share", shareID]) +const list = await Storage.list({ prefix: ["share_data", shareID] }) +for (const item of list) { + await Storage.remove(item) +} -- cgit v1.2.3