Files
aigen/server/api/library/folders/[id]/wipe.post.ts
T
TowstyandCursor 4b22c95b4b Add folder wipe and drop broken still tiles from the library.
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>
2026-10-12 13:34:31 -05:00

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 }) }
})