How to Remove App Cache on Linux

Clean application cache on Linux to recover space and reduce clutter using Kudu.

By Kudu Team

Fix this automatically with Kudu

Run a free system scan to detect and resolve this issue automatically — no manual steps required.

Download Kudu Free →

What Causes This?

Many Linux apps store temporary files, thumbnails, logs, and downloaded data in cache folders so they can open faster and avoid downloading the same content again. Over time, these cache files can grow large, especially for browsers, package managers, media apps, and messaging tools.

Cache usually is not harmful, but old or oversized cache data can waste disk space and leave behind clutter from apps you no longer use. In some cases, corrupted cache files can also cause apps to behave strangely or load outdated data.

Common Symptoms

  • Your Linux system is running low on disk space
  • Apps like browsers or package managers are using more storage than expected
  • You notice large hidden folders inside your home directory
  • An app is slow, glitchy, or keeps loading old content
  • Storage analyzer tools show lots of space used by .cache or app data folders

How to Fix It Manually

  1. Open a terminal

    • On most Linux desktops, press Ctrl+Alt+T to open Terminal.
    • You can also open it from your applications menu by searching for Terminal.
  2. Check the size of your main user cache folder

    • Run:
      du -sh ~/.cache
    • This shows the total size of your user cache.
    • To see which apps are using the most space, run:
      du -sh ~/.cache/* 2>/dev/null | sort -h
  3. Clear the general user cache

    • To remove cached files for your current user, run:
      rm -rf ~/.cache/*
    • This usually deletes temporary app data only, not your personal files or app settings.
    • Close apps first before doing this, especially browsers and chat apps, so files are not in use.
  4. Clean package manager cache

    • If you use Debian, Ubuntu, or Linux Mint, run:
      sudo apt clean
    • If you use Fedora:
      sudo dnf clean all
    • If you use Arch Linux:
      sudo pacman -Scc
    • This removes downloaded package files that are no longer needed.
  5. Clear browser cache if needed

    • Browsers often store a large amount of cached images, video, and website data.
    • In Chrome or Chromium, open the browser, press Ctrl+Shift+Delete, choose Cached images and files, then confirm.
    • In Firefox, press Ctrl+Shift+Delete, select Cache, and clear it.
  6. Check for app-specific cache folders

    • Some apps store cache in hidden folders under your home directory, such as ~/.var/app/ for Flatpak apps.
    • To inspect large hidden folders, run:
      du -sh ~/* ~/.??* 2>/dev/null | sort -h
    • Be careful not to delete configuration folders unless you know what they do.
  7. Restart the app or reboot your system

    • After clearing cache, reopen the affected app.
    • If you cleared a lot of temporary data, rebooting can help the system fully release disk space and rebuild clean cache files.

Fix It Automatically with Kudu

Manually tracking down cache folders can take time, especially if multiple apps are storing temporary files in different locations. Kudu can scan your system, identify safe-to-remove app cache and other junk files, and clean them up automatically to recover space faster.

Download Kudu Free →

Fix this automatically with Kudu

Run a free system scan to detect and resolve this issue automatically — no manual steps required.

Download Kudu Free →