TRIM (SSD)
Also known as: SSD TRIM, TRIM command, ATA TRIM, SSD garbage collection
TRIM is a command that lets the operating system tell an SSD which blocks of data are no longer in use after a file is deleted, so the drive can erase them ahead of time. This keeps writes fast and helps the SSD last longer. It runs automatically on modern systems.
- Tells an SSD which deleted blocks are free
- Keeps writes fast and extends drive life
- On by default on modern systems; SSD-only
Why SSDs need TRIM
Unlike a hard drive, an SSD cannot overwrite data in place — it must erase a block before writing new data to it. Without help, the drive does not know a deleted file’s blocks are free, so it ends up erasing and rewriting them at the worst moment, slowing writes over time.
TRIM fixes this by having the OS flag freed blocks the moment you delete a file, so the SSD can clear them in the background during idle time. The result is that writes stay fast as the drive fills and ages.
TRIM in practice
On modern systems TRIM is on by default for internal SSDs — Windows, macOS, and Linux all support it, and you do not need to trigger it manually. It works hand in hand with the drive’s own garbage collection to keep performance steady.
TRIM applies to SSDs and other flash storage, not to spinning hard drives, which do not have the erase-before-write limitation. It is a reason an SSD does not need the old defragmentation a hard drive once did.