macOS features a brilliant tool called “Quick Look.” If you select a file in the Finder and press the Spacebar, a large, instant preview of the image or PDF pops up on your screen. To make this feature lightning fast, macOS secretly generates highly detailed thumbnail images of your files and stores them in a hidden system cache.
The problem arises when you delete a highly sensitive document (like a tax return or a private photo). Even after you empty the Mac Trash bin and the original file is mathematically destroyed, a high-resolution preview image of that deleted file might still be sitting in the hidden Quick Look cache. To truly destroy the trace of the file, you must safely purge this hidden database.
How to Safely Erase the Mac Quick Look Cache
You must use a specialized Terminal command to force macOS to flush the SQLite database.
- Open the Finder, go to Applications, open the Utilities folder, and double-click Terminal.
- Because the Quick Look cache is owned by the core operating system, you cannot simply drag it to the Trash. You must tell the system utility to reset itself. Carefully type the following exact command:
qlmanage -r cache - Press Enter.
The terminal will instantly output a confirmation message: qlmanage: call reset on cache.
The Quick Look daemon has immediately deleted its entire internal thumbnail database. Any ghostly previews of previously deleted files are permanently gone. The next time you press the Spacebar on an existing file, macOS will simply generate a brand new, fresh thumbnail for it. Your system remains perfectly stable, but your privacy is securely restored.