I read that secure deleting a file on any kind of SSD was dangerous because it could hurt the reliability and longevity of the SSD. Therefore, if I removed files using the -P flag, would hurt my SSD because according to https://ss64.com/, the -P flag instructs the command to do the following:
-P Overwrite regular files before deleting them. Files are overwritten three times, first with the byte pattern 0xff, then 0x00, and then 0xff again, before they are deleted.
Therefore, is using this command safe on Macs with an SSD, or can this cause damage since it is technically overwriting data on the SSD which causes wear leveling?
rm -P. SSDs make the data in deleted blocks inaccessible the moment thermcommand is issued. Is secure erase bad? You could make an academic argument that it is, but in actuality it’s not practical to do so. The-Pflag is still included to accommodate legacy drives. – Allan Jun 20 '20 at 05:18trimforce enable. – Case39 Jun 21 '20 at 06:48