Files
agency/.pnpm-store/v11/files/bd/2e2d5d96f230a0909a9063e9d105c4c0ae5815ccbe2dc4a0461b02aea06d9a0b79c4912b8bce00ebb9ddc73e40314ff7510a684ee28187f04f6dd5e212975f
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

19 lines
481 B
Plaintext

'use strict'
const fs = require('fs/promises')
const contentPath = require('./path')
const { hasContent } = require('./read')
module.exports = rm
async function rm (cache, integrity) {
const content = await hasContent(cache, integrity)
// ~pretty~ sure we can't end up with a content lacking sri, but be safe
if (content && content.sri) {
await fs.rm(contentPath(cache, content.sri), { recursive: true, force: true })
return true
} else {
return false
}
}