Instead, the operating system only changes the file allocation and marks the memory space as “free”. The operating system marks the space as available on deleting the file’s pointer therefore, it turns inaccessible, and we think that the data no longer exist on the hard drive.
When the pointers are removed, the file becomes invisible or hidden from the operating system.
On deleting the file, only the pointer of the file gets deleted, and it continues to exist on the hard drive even after you have emptied the Recycle Bin. Each file stored on the hard drive has a pointer which indicates the file location. When you delete a file, it is not erased from the hard drive instead, Windows keeps a track of the file through its pointer. The first thing you need to do is search the Recycle Bin as when a file is deleted it moves to the recycle bin provided that the file has not been permanently (Ctrl + Shift + Del) deleted.
Suppose, while updating an application, you accidentally deleted your personal data, then how would you recover that data? It could be your official documents, precious photos, data associated with an email address, demographics, etc., given that, it becomes imperative to recover them.