TechBuzzPro

How to Clear Discord Cache Files on PC and Mac

· 4 min read · Discord

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Clearing your Discord cache removes temporary files that can cause glitches, black screens, or high CPU usage. You need the Discord app closed completely before starting, as running instances will lock these files.

What You'll Need

  • Your computer (Windows or macOS)
  • Administrator access to your user folder
  • The Discord application installed

Step-by-Step

  1. Quit Discord Completely: Simply closing the window is not enough. On Windows, right-click the Discord icon in the system tray (bottom right near the clock) and select "Quit Discord." On macOS, click the Discord menu in the top bar and choose "Quit," or press Command+Q. Verify it is gone by checking your task manager or Activity Monitor.
  2. Open the Run Dialog (Windows): Press the Windows Key + R simultaneously on your keyboard. This opens the small "Run" box at the bottom of your screen.
  3. Navigate to AppData (Windows): In the Run box, type %appdata% and press Enter. This opens a hidden folder specific to your user account. Locate the folder named Discord inside this directory.
  4. Navigate to Library (macOS): Open Finder. Click the "Go" menu in the top menu bar, hold down the Option key, and select "Library." Inside the Library folder, go to Caches > com.hnc.Discord. Alternatively, you can use the Terminal command open ~/Library/Caches/com.hnc.Discord.
  5. Delete Cache Folders: Inside the Discord folder (Windows) or com.hnc.Discord folder (macOS), you will see several subfolders such as Cache, Code Cache, GPUCache, and Local Storage. Select all these folders and delete them. Do not delete the main Discord executable or config files; only the cache-specific subdirectories.
  6. Restart Discord: Launch the Discord application normally. It will rebuild the necessary cache files from scratch. This may take a few seconds longer than usual upon first launch.

Common Mistakes

A frequent error is attempting to delete cache files while Discord is still running in the background. The operating system locks these files, resulting in "Access Denied" errors or deleted files that immediately reappear. Always ensure the app is fully quit via the system tray or menu before proceeding.

Another mistake is deleting the entire Discord folder instead of just the cache subfolders. This can remove your local settings, login tokens, and server configurations, forcing you to log in again and potentially losing some local preferences. Only target the Cache, Code Cache, and GPUCache directories.

Tips

If you are experiencing persistent graphical glitches, clearing the GPUCache specifically is often more effective than clearing everything. This forces Discord to rebuild its graphics rendering data, which can resolve black screens or flickering interfaces.

For users who frequently run into cache issues, consider disabling hardware acceleration in Discord settings. Go to User Settings > Advanced > Hardware Acceleration and toggle it off. This reduces reliance on GPU caching, though it may slightly increase CPU load during video playback.

Troubleshooting

If clearing the cache does not resolve your issue, try restarting your computer. This clears system-level memory buffers that might be interfering with Discord.

If Discord fails to launch after clearing cache, reinstall the application. Download the latest version from the official Discord website. During installation, ensure you do not check any options to preserve old data if prompted, allowing a clean slate.

Check for Windows or macOS updates. Sometimes cache corruption is linked to outdated system drivers, particularly graphics drivers. Update your GPU drivers from the manufacturer's website (NVIDIA, AMD, or Intel).

Frequently Asked Questions

Does clearing cache delete my messages?

No. Discord stores message history on their servers. Clearing local cache only removes temporary files used for loading images and interface elements quickly. Your chat history remains intact.

Will I have to log in again?

Usually, no. However, clearing certain local storage files might invalidate your session token. If you find yourself logged out, simply enter your credentials again. This is a standard security feature.

How often should I clear Discord cache?

Only when you experience issues like lag, black screens, or corrupted images. Regular maintenance is not required unless the app behaves erratically.

Can I clear cache on mobile?

This guide focuses on desktop versions. On iOS and Android, you typically clear app data through your device's Settings > Apps > Discord > Storage. This is more invasive and logs you out completely.

Is it safe to delete the Code Cache folder?

Yes. The Code Cache stores JavaScript and CSS files used to render the Discord UI. Deleting it forces the app to download fresh copies, fixing many UI bugs safely.