When a file is deleted, the computer marks the space as available for overwriting. The actual file still exists until it is overwritten by new data. This means that it is possible to recover deleted files if they have not been overwritten yet.