0

i have a file that I need to permanently delete without any traces of it in memory kind of similar to Linux wipe/ shred commands. is there a way for me to use java inbuilt function for this without using any Linux shell calls. currently I'm using the below code

Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("shred -zu -n 5 " + file.getAbsolutePath());
marper96
  • 11
  • 1
  • 4

0 Answers0