Discord caches every image, GIF, video, and attachment you scroll past. On a heavy user's PC, %appdata%\discord\Cache and its siblings routinely exceed 5–10 GB.

Short answer: fully quit Discord, then delete the contents of %appdata%\discord\Cache, %appdata%\discord\Code Cache, and %appdata%\discord\GPUCache. Discord rebuilds empty caches on next launch.

Quitting Discord fully

Discord keeps running in the system tray after you close the main window. You must fully quit it first, or the cache folders will be locked.

  1. in the Discord window, click your user Settings (gear icon, bottom left)
  2. scroll to the bottom of the settings sidebar, click Quit Discord
  3. or right-click the Discord icon in the Windows system tray (bottom-right) and choose Quit Discord
  4. confirm no Discord.exe process is running in Task Manager

Deleting the cache folders

  1. press Windows + R, type %appdata%\discord, press Enter
  2. open each of these subfolders in turn and delete their contents (not the folders themselves):
    • Cache — media attachments
    • Code Cache — compiled JavaScript from the Discord web client
    • GPUCache — GPU shader cache
  3. (optional, deeper reset) delete Local Storage and Session Storage too — you will stay logged in on your main session but may lose draft messages

Do not delete the discord folder wholesale unless you want to resign in and reset all client preferences.

Preventing the cache from bloating again

Discord does not expose a native cache size cap, but you can reduce incoming cache growth:

  • User Settings > Text & Images > Automatically display link previews — off
  • User Settings > Text & Images > Show emoji reactions on messages — leave on, but avoid scrolling heavy meme servers
  • User Settings > Accessibility > Automatically play GIFs when Discord is focused — off

Better next routes

For the broader Windows cleanup picture, continue with How to Free Up Space on C Drive Windows 11 Natively.

For the Spotify equivalent, read How to Clear the Spotify Desktop Cache on Windows.