GHHG10's picture
download
raw
403 Bytes
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)
}

Xet Storage Details

Size:
403 Bytes
·
Xet hash:
401735c114ad5204ad83cccb6603a1b32e2112269ec99b9fa8a00fc4440ac9c7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.