---
type: note
tags: [lovable, dev, recommendation, note]
created: 2025-11-06T02:51:46.190Z
updated: 2025-11-15T20:19:56.869Z
---# Media repair tool

Recommendation: Consider adding a MediaRepair tool to identify and clean orphaned files, or implement automatic cleanup when items are deleted (though this prevents recovery).\n\nAll media is now handled consistently - MediaDisplay is used everywhere (ItemCard, MediaUpload), so the fix applies to all images/videos.\n\nCurrent deletion behavior:\n\nItems deleted: Database records removed, but media files stay in storage\nNo automatic cleanup: Orphaned files accumulate (storage "junk")\nRecovery possible: Files remain in storage even after item deletion\nOnly bulk cleanup: "Super Reset" can optionally delete all media\n


---
**Keywords:** lovable, dev, recommendation, note
