How can we delete the contents of the partition without deleting the partition table.
For example, if I have few files and folders which i need to clear and remove from the partition.
Running rm -rf in the folder will allow to recover using recovery tools. Using dd with /dev/zero we will wipe the partition table
dd if=/dev/zero of=/dev/sda1
What's the best way to delete the files and write zeroes in the same memory location, so it cannot be retrieved, without formatting the partition