Languages

Menu
Sites
Language
Deleting a file securely

how to programatically delete a file securely  so that it cannot be recovered with any other tool

Edited by: P puvvada on 11 Nov, 2013

Responses

3 Replies
Alex Ashirov

Hi,

I am not sure that there is such API, but I think you have at least 2 options:

  1. You can fill the file with zeros, save it and then remove it.
  2. Use srm linux command.
P puvvada

Thanks for  reply

i have followed the similar approach of what you have said

Before deleting the file ,i will overwrite the contents of the file with junk character and then i will delete the file so that even after recovery also original data is not there