Deleting files permanently with Delphi

Posted by webmaster Guido on January 19, 2007

In Reply to deleting text files permanently posted by jan dunn on January 17, 2007

: is there a way to delete a text file via Delphi 5 so that the file could not be recovered in the Windows recycle bin???

The function DeleteFile deletes a file without first making a "backup" in Windows' recycle bin. That file can not be recovered from the recycle bin, because it never was in there :)

Note that this holds true for all types of files, not only for text files.

Source code example:



Related articles


Follow Ups