/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/enterprise/script/scrap.ts
15 строк
403 B
Frank
admin unshare
12 янв 2026, 22:20
12 янв 2026, 22:20
b7b09fd
Код
Авторство
О чём код?
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 <shareID>") 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) }