Asset cleanup

If your browser storage gets full or you want to reset the library, use the built‑in tools to remove local files and caches. All operations happen on your device — nothing is uploaded.

1) Storage & cache management page

  • Open /storage to see IndexedDB usage, total files, and projects.
  • Buttons allow you to delete all local projects and files, or clear caches only.
  • Useful if you hit quota errors during large uploads.

2) Remove unused files from Library

  • Go to the Media panel and delete items you no longer need — this updates filesID.
  • Library deletion removes blob entries; timeline clips referencing them should be removed beforehand.

3) Emergency cleanup (low‑space uploads)

The uploader checks quota via storageManager.canStore(). If space is low, it suggests a cleanup step. You can trigger an emergency cleanup which clears transient caches before retrying.

4) Service Worker & caches

  • The Service Worker caches static assets and WASM in production; it does not cache your uploaded media.
  • After a new deploy, click the “New version available” toast → Reload to update cached files.

5) Tips & troubleshooting

Quota exceeded

Use /storage to clear old projects, or reduce the upload batch. Private/incognito windows often have much smaller quotas.

Can’t remove a stubborn file

Refresh the page and try the Library delete again. If it persists, clear all projects on /storage.

Reclaim memory during long sessions

Close extra tabs; the app emits a memory-clear-all-caches event internally when needed to free caches.

6) Related files

  • Storage manager: app/utils/storageManager.ts
  • Quota helpers: app/hooks/useStorageManager.ts, app/utils/storageQuota.ts
  • Uploader: app/components/editor/AssetsPanel/AddButtons/UploadMedia.tsx