How to find and delete old screenshots on Linux
Look in Pictures (often Pictures/Screenshots), sort by date and delete the old files, or use find in the terminal to list and remove screenshots older than a set number of days.
Linux has no single screenshot folder, because each desktop and tool picks its own. Once you know where yours go, cleaning up takes a minute.
Where Linux screenshots are saved
The usual places:
- GNOME (Ubuntu, Fedora): the Pictures folder, or Pictures/Screenshots on newer versions.
- KDE Plasma (Spectacle): normally Pictures/Screenshots, but you can change it in Spectacle's settings.
- Flameshot, ksnip and similar tools: wherever you chose when saving, or a folder set in the tool's settings.
If you are unsure, open the tool's settings and look for the save location. You can also search your home folder for files named "Screenshot".
Delete with your file manager
- Open your file manager (Files, Dolphin, Nautilus and so on) and go to the screenshot folder.
- Switch to list view and sort by Modified so the oldest files are together.
- Click the first old file, hold Shift, click the last one.
- Press Delete to move them to the Trash.
- Open Trash and choose Empty Trash to free the space.
Delete with the terminal
The terminal is faster when you have hundreds of files. Always list first, then delete.
- List screenshots older than 30 days:
`find ~/Pictures -type f -iname 'Screenshot*' -mtime +30`
- Check the list. If it looks right, send the files to the Trash (recoverable):
`find ~/Pictures -type f -iname 'Screenshot*' -mtime +30 -exec gio trash {} +`
- Or delete them permanently by adding `-delete` instead of the trash command. There is no undo, so only do this after checking step 1.
Change `~/Pictures` to your own folder and `+30` to the number of days you want to keep. Your tool may name files differently, so adjust the `-iname` pattern to match.
Automate the cleanup
If you take many screenshots, a weekly cron job or systemd timer running the find command with a longer age (for example 60 days) keeps the folder small. Test the command by hand first, and point it only at the screenshot folder, never at your whole home directory.
Stop piling up files you only needed once
Most screenshots are taken to show something to someone. For those, you do not need a file on disk at all.
- Press Print Screen or your tool's shortcut, with the image copied to the clipboard.
- Open ShotBox in any browser and paste with Ctrl+V.
- Crop, add arrows or text, and use pixelate blur to hide passwords or names.
- Copy the private link and send it. Choose an expiry of 1 hour, 1 day, 7 days or 30 days, or delete the link whenever you like.
ShotBox removes camera and GPS (EXIF) data from every image, and links are long, random and not indexed. It has no ads and no tracking cookies.
If you do want copies on your computer, a small sync script (it works on Linux) can save every ShotBox screenshot into a folder, so you have one place to review and clear out. Keep in mind ShotBox is a web app: it cannot trigger a capture from a hotkey, record the screen or capture scrolling pages. For recording, a tool such as OBS Studio or your desktop's built-in screencast works well.
Frequently asked questions
Where are screenshots stored on Ubuntu?
Usually in your Pictures folder, or in Pictures/Screenshots on newer GNOME versions. Check your screenshot tool's settings if you changed it.
How do I delete screenshots older than 30 days in Linux?
Run find with -mtime +30 and a name pattern such as 'Screenshot*' to list them, then add -exec gio trash {} + to move them to the Trash. List first so you can check the results.
Is deleting with the terminal permanent?
Using -delete is permanent. Using gio trash moves files to the Trash, where you can still restore them until you empty it.
Can I share a screenshot on Linux without saving a file?
Yes. Copy the capture to the clipboard, paste it into ShotBox with Ctrl+V and send the private link. You can set it to expire after 1 hour, 1 day, 7 days or 30 days.
Does ShotBox work on every Linux desktop?
It runs in any browser, so it works wherever you can open a web page. You take the screenshot with your system shortcut, then paste it.