fstrim
Discard unused blocks on a mounted filesystem. tldr-pages
On Linux
Linux
Discard unused blocks on a mounted filesystem. Only supported by flash memory devices such as SSDs and microSD cards.
Trim unused blocks on all mounted partitions that support it
sudo fstrim --allIdentifyTrim unused blocks on a specified partition
sudo fstrim /IdentifyDisplay statistics after trimming
sudo fstrim --verbose /Identify