Copy link to clipboard
Copied
Is there a way to securely delete (shred) a file using ColdFusion? I assume that CFFILE Action="Delete" is not a secure delete.
Copy link to clipboard
Copied
"Shredding" is not offered in ColdFusion. Furthermore, the ability to actually do such a thing depends entirely upon the underlying filesystem (and perhaps also the network). Generally speaking, in my experience it is not possible to obliterate a disk-file such that no piece of it truly remains anywhere.
Copy link to clipboard
Copied
Your answer doesn't surprise me since I was unable to find anything about this subject.
Our situation is that we are using a 3rd party Toolkit to form-fill a PDF template with a user's personal data and allowing them to view it or email it to themselves. The form-filled PDF gets saved to the server before we redirect the user to it and then we run a sweep procedure to delete them on a regular basis. We're just looking for a way to securely remove these documents from the server so no trace is left.
Thanks for your response.
Copy link to clipboard
Copied
You might try a 3rd party utility for handling the shredding.
1. Instead of deleting the target files in your CF code move them to a directory 'shred1'
2. Invoke your 3rd party shred utility with CFSCHEDULE, Windows schedule, or *nix cron job to shred the contents of the directory 'shred1'