Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Why a disk cleaner should never delete on its own

A disk cleaner has an unusual job: its main feature is destroying data. The failure modes aren't "a button is in the wrong place" — they're "my thesis is gone". These are the rules Limpa Tudo , the open-source (MIT) disk cleaner for Mac and Linux I build, follows, and why. 1. Scanning and removing are separate steps A scan never deletes anything. You see the full list first, then decide. There is…

A disk cleaner performs a unique task: its primary purpose is to delete data. The potential errors are not simply "a button is misplaced" — they involve losing critical information. The method Limpa Tudo, an open-source (MIT) disk cleaner for Mac and Linux, employs, and the reasons behind it, are outlined below.

Firstly, the scanning and removal processes are distinct steps. The scanner does not erase any data. It presents the entire list of items to be deleted, enabling the user to make a well-informed decision. There is no "clean everything" button that bypasses this list, and the background monitor merely reports — it can indicate the availability of space, but it never erases it.

Secondly, by default, everything is directed to the system Trash. This means that a mistake can be rectified by simply dragging the item back. Permanent deletion is available, but it is an advanced setting that must be explicitly turned on. The confirmation message in plain words emphasizes that this is a deliberate action.

Thirdly, the application operates within a fixed list of paths, rather than conducting an open-ended scan of the entire disk. It targets known cache locations such as ~/.npm , ~/Library/Developer/Xcode/DerivedData , and ~/.gradle/caches. It never ventures beyond these locations, thus minimizing the risk of accidentally deleting important data. Folders such as Documents, Desktop, Photos, passwords and the Keychain are intentionally excluded from the scanning process.

Fourthly, every item displayed is accompanied by its exact path and size. This transparency is crucial as it allows the user to understand where the data is stored and how much space it occupies. This feature is particularly important on APFS file systems, where a folder might report hundreds of GB of space, but the actual data might only consume a few GB due to block sharing.

Fifthly, the risk associated with each item is clearly indicated. Items are categorized as low risk (automatically rebuilt — caches, build outputs), medium risk (returns, but at a cost — emulators, downloaded models, chat media) or high risk (data that would be lost — entire Docker VMs). Only low-risk items can be automatically selected; medium-risk items require an additional confirmation; high-risk items are only visible in advanced mode.

Lastly, the application does not guarantee any improvement in speed or increase in available disk space. Clearing caches does not necessarily translate to a faster computer. Any promise of "X GB freed" is unverified, as it depends on the specific contents of the user's disk. The honest promise of Limpa Tudo is to provide the user with a detailed overview of their disk's contents, identify what is safe to remove, and leave the final decision in the hands of the user.

The code, including the catalog of paths and the risk assessment of each one, is openly available on GitHub, allowing users to verify these rules independently.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

How to Run PostgreSQL Without Docker: miniPG Works Like sqlite3 (No pgvector)

Almost every "run PostgreSQL locally" tutorial starts with docker run postgres . That gives you two dependencies, a daemon and, on a Mac or Windows box, a whole Linux VM, all so a test suite can make…

  • miniPG is a single executable that embeds Postgres 18 server and client
  • Works like sqlite3, uses path as database
  • No daemon, container, or additional setup required

Upload2Shell: check your Ghostscript version and stop trusting safe image pipelines

Upload2Shell, tracked as CVE-2026-125396, is a use-after-free in the Type 1 font loader of Ghostscript. A crafted document can escape the dSAFER sandbox.

  • CVE-2026-125396 is a use-after-free vulnerability in Ghostscript's Type 1 font loader
  • Exploited in Debian 13 CUPS, Roundcube 1.7.2, MediaWiki, and WordPress 7.0.0 to 7.0.3
  • Patched in Ghostscript version 10.08.0 on September 8th, 2026

More from Monday 23 November →