blkdiscard

Discards device sectors on storage devices. Useful for SSDs.

TLDR

Discard all sectors on a device, removing all data

>_ blkdiscard /dev/[device]
copy

Securely discard all blocks on a device, removing all data

>_ blkdiscard --secure /dev/[device]
copy

Discard the first 100MB of a device

>_ blkdiscard --length [100MB] /dev/[device]
copy

Copied to clipboard
free 100$ digital ocean credit