When you delete a file from your hard disk, it may seem as if it is gone forever. In truth, however, this is not the case. The seemingly permanent process of file deletion actually leaves the file data still on the hard disk. When a file is deleted, it is simply marked deleted, and the space that it occupies on the disk is accordingly marked ready for use. Hence, it may be overwritten when more disk space is required, but this is by no means certain, unless the entire hard disk is filled with data.
Now, the actual data that make up the file is still on the hard disk, even after deletion. This makes it available for recovery, usually done using specially designed data recovery programs. MSDOS, in fact, has a built-in UNDELETE command which may recover recently deleted files.
The reason why file deletion is not as thorough as it can be is a simple one; resource management. Actually overwriting every bit of every file that is to be deleted will use more resources than would be practical, for everyday use. And in fact, this simple file deletion is usually sufficient for the basic users needs.
However, security considerations might necessitate the complete...