Delete all in this folder removes every still, clip, and track with files; list builders prune missing masters; select-all and delete no longer resurrect suppressed ids from later pages. Co-authored-by: Cursor <cursoragent@cursor.com>
8 lines
307 B
TypeScript
8 lines
307 B
TypeScript
export default defineEventHandler(async (event) => {
|
|
const { owner } = assertLibraryOwner(event)
|
|
const id = String(getRouterParam(event, 'id') || '')
|
|
assertFolderAccess(event, id)
|
|
const result = await wipeFolderContents(owner, id)
|
|
return { ...result, ...publicLibrary(event, { light: true }) }
|
|
})
|