diskard is a developer-focused command line utility that scans a system for reclaimable disk space created by development tools and environments. Over time, caches, build outputs, package manager data, container images, and machine learning model downloads can consume large amounts of storage.
Diskard identifies these artifacts and allows users to review and clean them safely from the terminal.
This is free and open source software.
Key Features
- Command line utility designed to locate reclaimable disk space created by developer tools.
- Scans systems for build caches, package manager data, container artifacts, and other development leftovers.
- Detects artifacts produced by ecosystems such as Node.js, Rust, Docker, and Xcode.
- Identifies large directories including build outputs, dependency caches, and downloaded model data.
- Flexible scanning options with filters for category, size thresholds, and item age.
- Risk classification to help distinguish safe items from potentially sensitive files.
- Interactive cleanup commands that move removed files to the Trash by default.
- Optional permanent deletion mode for fully removing selected artifacts.
- Dry run mode for previewing cleanup actions before performing them.
- Machine readable JSON output for scripting and automation.
- Fast Rust implementation designed for efficient scanning and cleanup operations.
Website: github.com/shoenot/diskard
Support:
Developer: shoenot
License: MIT License or Apache License 2.0

diskard is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| du alternatives | Programming Language | License |
|---|---|---|
| dust | Rust | Apache License 2.0 |
| duf | Go | MIT License |
| Duc | C | GNU Lesser General Public License v3 |
| Ncdu | C | GNU GPL v2.0 License |
| gdu | Go | MIT License |
| dua | Rust | MIT License |
| erdtree | Rust | MIT License |
| vizex | Python | MIT License |
| godu | Go | MIT License |
| dutree | Rust | GNU General Public License v3 |
| pdu | Rust | Apache License 2.0 |
| space | Rust | MIT License |
| whalespotter | Rust | MIT License |
| diskus | Rust | MIT License or Apache License 2.0 |
| sn | Rust | BSD 3-Clause “New” or “Revised” License |
| duviz | Python | MIT License |
| dirstat-rs | Rust | MIT License |
| bonsai | C++ | GNU General Public License v3.0 |
| tdu | Go | GNU General Public License v2 |
| diskonaut | Rust | MIT License |
| cdu | Perl | GNU General Public License v2.0 |
| dut | C | GNU General Public License v3.0 |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

