Oluwafemi Obajuluwa

Oluwafemi Obajuluwa › Reclaim

Removing things

Trash, delete, or truncate in place

Removing things

Most things go to the Trash, because that is the one that can be undone.

A few are deleted outright. Anything large enough that moving it to the Trash would leave the volume exactly as full has to be, otherwise the app would report space it hadn't actually freed.

The third case is log files that a running service holds open. Deleting one of those releases nothing, because the process still holds the handle, and the writer carries on at the offset it was already at, so the replacement file starts out just as large. Those are truncated in place instead.