How to Delete Discord Cache on PC: Clear Storage & Fix Bugs
In this article
Deleting the Discord cache on your PC clears temporary files that can cause glitches, high memory usage, or login loops. This process is safe and does not delete your messages, friends, or server data. To begin, ensure you fully close the Discord application from your system tray so the files are not locked.
What You'll Need
- A Windows PC (steps for Windows 10/11)
- The Discord desktop application installed
- Access to the File Explorer
Step-by-Step
- Close Discord Completely: Right-click the Discord icon in your Windows taskbar notification area (system tray) near the clock. Select "Quit Discord." If you do not see the icon, press Ctrl + Shift + Esc to open Task Manager, find "Discord" in the list, right-click it, and choose "End Task." This ensures no background processes are using the cache files.
- Open the Run Dialog: Press the Windows Key + R on your keyboard simultaneously. This opens the small "Run" command box at the bottom of your screen.
- Navigate to AppData: In the Run box, type
%appdata%and press Enter. This will open a folder named "Roaming." This folder stores user-specific settings and cached data for most applications. - Locate the Discord Folder: Inside the Roaming folder, scroll down and find the folder named "Discord." Double-click to open it.
- Delete Local Storage: Inside the Discord folder, look for a subfolder named "Local Storage." Right-click this folder and select "Delete." This removes the database files that store your recent activity, images, and UI state. Confirm the deletion if prompted.
- Clear Image Cache: While still inside the main Discord folder, locate the "Cache" folder. Right-click and delete it. Next, find the "GPUCache" folder and delete it as well. These folders store web assets like emojis and profile pictures to speed up loading.
- Restart Discord: Open Discord normally from your desktop shortcut or Start menu. The application will automatically recreate fresh, empty cache folders upon launch. Your login session may be cleared, requiring you to sign in again.
Common Mistakes
Users often attempt to delete the cache while Discord is running in the background. Windows protects active files, resulting in "Access Denied" errors or incomplete deletion. Always ensure the app is fully closed via Task Manager or System Tray before proceeding.
Another common error is deleting the entire "Discord" folder instead of just the specific cache subfolders. This removes your local configuration settings, including theme preferences, keybinds, and trusted device tokens. Only delete the "Local Storage," "Cache," and "GPUCache" folders to preserve your settings.
Tips
If you are experiencing persistent issues after clearing the cache, consider deleting the "Code Cache" folder located within the Discord directory. This forces the browser engine embedded in Discord to rebuild its JavaScript resources, which can fix white-screen bugs.
To prevent cache bloat, regularly clear your browser cache if you use Discord in Chrome or Edge. The desktop app uses similar underlying technologies, so keeping your browser clean helps overall performance.
Troubleshooting
Discord fails to launch after clearing cache: If the app crashes immediately, the configuration file may have been corrupted. Navigate back to %appdata%/Discord, rename the "config.json" file to "config.old," and restart Discord. It will generate a new default config file.
Files cannot be deleted: If you receive an error saying the file is in use, restart your computer. This terminates all lingering Discord processes. Try the deletion steps again immediately after booting up.
Cache builds up quickly: If your storage fills up rapidly, check for heavy usage in servers with many animated emojis or GIFs. Consider using the built-in "Clear Recent History" feature in Discord settings to manage smaller amounts of data without manual folder deletion.
Frequently Asked Questions
Does deleting cache delete my messages?
No. Deleting cache only removes temporary local files. All your messages, channels, and friend lists are stored on Discord's servers and will remain intact.
Will I need to log in again?
Yes. Clearing the "Local Storage" folder removes your authentication token. You will need to enter your email and password to sign back in.
Can I clear cache on Mac?
This guide is for Windows. On macOS, you must manually navigate to ~/Library/Application Support/Discord and delete similar folders (Cache, Code Cache, etc.) using Finder.
How often should I clear the cache?
Only when you experience technical issues like freezing, white screens, or missing images. Regular clearing is unnecessary unless your drive is running low on space.
Does this fix login loops?
Often, yes. Corrupted local storage files are a common cause of infinite login loops. Clearing them forces a fresh authentication handshake.