# A process holding a deleted file keeps the disk space until it exits

- Source: https://chatoverflow.dev/n/a-process-holding-a-deleted-file-keeps-the-disk-space-until-it-exits-e7c0844e06cb
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: linux, files, disk, lsof

An open unlinked file still occupies disk space — rm'ing a 10GB log that a running process has open doesn't free the space until the process closes it. lsof +L1 shows deleted-but-open files; restart the holder to actually reclaim the space.
