A document shows the generic white page instead of its app’s icon, Quick Look draws nothing or a stale thumbnail, and the Open With menu lists the same app three times, twice under a name you deleted long ago. Nothing is broken: three caches and one database have drifted out of date. Here is what each one does and how to rebuild it — by hand, or with one click each in CleanMate.
What sits behind each symptom
- The Launch Services database is macOS’s index of every app it knows. Finder builds the Open With menu and picks the icon of a document from it. Move or delete apps and copy them back for years, and the database keeps entries for apps that are gone — the menu fills with duplicates and documents may open with, or show the icon of, a version that no longer exists.
- The Quick Look cache stores the thumbnails Quick Look has already drawn. After an app that renders a format is updated or removed, previews can come out blank, wrong or slow because the cache still holds what the old version drew.
- The icon cache is what the Dock and Finder draw instead of re-reading every icon file. When it goes stale, icons come out wrong, white or generic until the cache is rebuilt.
Fix it by hand
Restart Finder and Dock first — a surprising number of icon glitches are just a stale process, and macOS starts both again at once:
killall Finder
killall Dock
If previews are still blank, wrong or slow, restart Quick Look and clear its thumbnail cache:
qlmanage -r # restart Quick Look
qlmanage -r cache # clear the thumbnail cache
For wrong or blank icons in the Dock and Finder, delete the icon cache files in your own user cache folder and restart the Dock. getconf DARWIN_USER_CACHE_DIR prints the folder; the files are com.apple.dock.iconcache, com.apple.iconservices and com.apple.iconservices.store. Never touch /Library/Caches for this: it belongs to the system and all users, and changing it needs an administrator password. After deleting, run killall Dock again.
To clear the duplicate and outdated entries out of Open With, rebuild the Launch Services database with the standard lsregister tool, then restart Finder:
LSREGISTER=/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister
"$LSREGISTER" -gc
"$LSREGISTER" -r -f -apps local,system,user
killall Finder
The database rebuilds itself in the background; the menu is fresh the next time you use it.
What not to do
- Don’t delete the whole user cache folder to fix one icon: every app’s cache lives there, and you lose them all for no gain.
- Don’t run these commands with
sudo: everything they touch belongs to your user. - Don’t reinstall macOS over cosmetic icons — a rebuild is minutes, a reinstall is an afternoon.
How CleanMate does it
CleanMate’s Maintenance module (⌘8) runs the common fixes for you, each with a Run button and the tool’s output underneath, and none of the tasks needs an administrator password or removes your files:
- Rebuild Launch Services removes duplicate and outdated apps from Open With menus.
- Reset Quick Look restarts Quick Look and clears its thumbnail cache when previews are blank, wrong or slow.
- Clear Icon Cache fixes wrong or blank icons in the Dock and Finder, then restarts the Dock after asking.
- Restart Finder and Dock asks first, because Finder windows close and a copy in progress in Finder stops.
- Reset Font Cache fixes text drawn in the wrong font or as boxes.
- Update and Clean Homebrew (only when Homebrew is installed) and Time Machine local snapshots round out the list.
A preview that stays broken can also be a Quick Look plug-in left behind by an app you removed. CleanMate’s Uninstaller lists such extensions in your Library and marks them App removed, so you can move the leftover plug-in to the Trash. See all macOS features.
Related: clear the cache on a Mac, which ~/Library folders are safe to delete and what System Data is. CleanMate is free and open source: download it.
FAQ
Why did my icons turn generic after I deleted an app?
The icon cache still holds the old drawing, or Launch Services resolves the document to the app that is gone. Restart the Dock; if that is not enough, clear the icon cache or rebuild Launch Services.
Is rebuilding the Launch Services database safe?
Yes. It is a rebuilt index of apps already on the disk; macOS maintains it the same way in the background. Your documents and settings are not touched.
Do I need to log out or restart the Mac?
No. Every fix here restarts the process that draws from the cache (Finder, Dock, Quick Look), which is faster and enough.
Will fixing the caches delete anything of mine?
No. Icon caches, thumbnails and the Launch Services database are all rebuilt from what is on the disk; only the stale copies are removed.

