To clear the Discord cache on PC, fully quit Discord, then delete the contents of %appdata%\discord\Cache, %appdata%\discord\Code Cache, and %appdata%\discord\GPUCache. Discord rebuilds empty caches on the next launch, so you safely reclaim space without losing your account or servers.

TL;DR

  • Discord caches every image, GIF, video, and attachment you scroll past; on a heavy user's PC this routinely exceeds 5-10 GB.
  • You must fully quit Discord first -- it keeps running in the system tray and locks the cache folders.
  • Delete the contents of Cache, Code Cache, and GPUCache under %appdata%\discord, not the folders themselves.
  • Clearing the cache does not log you out or delete servers, messages, or settings.
  • Discord has no native size cap, but turning off auto-playing GIFs and link previews slows regrowth.

What does the Discord cache store on Windows?

The Discord cache stores media and code files that Discord saves locally so it does not re-download the same content every time you open a channel. It lives in three folders under %appdata%\discord:

Folder What it stores Safe to clear?
Cache Media attachments -- images, GIFs, videos Yes
Code Cache Compiled JavaScript from the Discord client Yes
GPUCache GPU shader cache for rendering Yes

All three regenerate automatically. None of them contain your account, messages, or server membership, which is why clearing them is safe.

How to fully quit Discord first

Discord keeps running in the system tray after you close the main window, and a running Discord locks its cache folders so Windows refuses to delete them. Quit it fully first:

  1. In the Discord window, open User Settings (the gear icon, bottom left).
  2. Scroll to the bottom of the settings sidebar and click Quit Discord -- or right-click the Discord icon in the Windows system tray (bottom-right) and choose Quit Discord.
  3. Confirm no Discord.exe process remains in Task Manager (Ctrl + Shift + Esc).

How to delete the Discord cache folders

With Discord fully closed, clear the cache:

  1. Press Windows + R, type %appdata%\discord, and press Enter.
  2. Open each subfolder in turn and delete their contents (not the folders themselves): Cache (media), Code Cache (compiled JavaScript), and GPUCache (shaders).
  3. Optionally, for a deeper reset, delete Local Storage and Session Storage too -- you stay logged in on your main session but may lose unsent draft messages.
  4. Empty the Recycle Bin to reclaim the space.

Do not delete the discord folder wholesale unless you want to sign back in and reset every client preference.

Is it safe to clear the Discord cache?

Yes. Clearing the Discord cache removes only locally stored media and rendering data, never your account, servers, message history, or settings, all of which live on Discord's servers. The worst case is that the next time you open a busy channel, images and GIFs reload from the network, and -- if you also cleared Local Storage -- unsent draft messages are gone. Everything else is untouched and rebuilds on demand.

How do I stop the Discord cache from bloating again?

Discord does not expose a native cache size cap, but you can slow how fast media accumulates by reducing what auto-loads:

  • User Settings > Text & Images > Automatically display link previews -- off.
  • User Settings > Accessibility > Automatically play GIFs when Discord is focused -- off.
  • Avoid scroll-binge sessions in heavy meme servers, which is where most cache weight comes from.

These settings cut down the images, GIFs, and previews Discord downloads in the background, so the cache regrows far more slowly.

FAQ

Will clearing the Discord cache log me out or delete my messages?

No. Your account, servers, and message history live on Discord's servers, not in the cache. Clearing the cache leaves all of them intact -- at most you reload media on your next visit.

Why can't I delete the Discord cache folder?

Because Discord is still running in the system tray and locking the files. Fully quit Discord (and confirm no Discord.exe in Task Manager) before deleting the cache contents.

How big does the Discord cache get?

On a heavy user's PC the Discord cache routinely exceeds 5-10 GB, since Discord stores every image, GIF, video, and attachment you scroll past until you clear it.

Does Discord have a setting to limit cache size?

No, Discord has no built-in cache size cap. You can only clear it manually and slow regrowth by disabling auto-playing GIFs and link previews.

Keep your C drive lean

For the broader Windows cleanup picture, continue with deep cleaning Windows 11/10 without third-party utilities, and to understand where these caches live, read what is the AppData folder and can I delete it. Related desktop fixes include clearing the Microsoft Store cache, disabling hibernation to save gigabytes, and uninstalling heavy PC games properly. If your phone collects the same kind of app clutter, the phone storage cleanup hub and the Cleanor iOS app find and clear it locally, with nothing uploaded.