File deletion is a way of removing a file from a computer's file system.
The reasons for deleting files are:
All operating systems include commands for deleting files (rm on Unix, delete/del in MS-DOS etc.). File managers also provide a convenient way of deleting files. Files may be deleted one-by-one, or a whole directory tree may be deleted.
Another strategy is not to delete files instantly, but to move them to a temporary place where they are kept until one is really low on free space. This is how the "recycle bin" in Microsoft Windows and the "trash folder" in Mac OS (which orginated the idea) work.
In MS-DOS, one can use the undelete command. In MS-DOS the deleted files are not really deleted, but only marked as deleted — so they could be undeleted during some time, until the disk blocks they used are eventually taken up by other files. Defragging a drive will prevent undeletion, as the blocks used by deleted file will be overwritten since they are marked as "empty".
Another precautionary measure is to mark important files as read-only. Many operating systems will warn you if you are trying to delete such files. Where file system permissions exist, "ordinary" users are only able to delete their own files, preventing the erasure of other peoples work or critical system files.
Another problem is that there may exist several copies of the same file (perhaps representing different stages of editing). People delete one copy and forget about others.
This article is licensed under the GNU Free Documentation License.
It uses material from the
"File deletion".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world