Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

What Happens To A File When You Delete It From Windows ?


18 replies to this topic

#1 midnitesun

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 181 posts

Posted 24 June 2006 - 07:27 AM

now have you ever wondered what happens to a file when you delete it and empty the recycle bin ? surely it should not be in the computer by then ?? well i ahd a big sprise waiting for today morning when i turned on my computer , i will tell you waht happened , yesterday a colleague of mine put sum flash files on my desktop and when i went home i deleted them and emptied recycle bin assuming he should have made a copy and has taken to his computer , but when i turned on my office computer this morning the files i deleted were sitting right on my desktop again !! boy u'll bet i was suprised , so i asked him and he told me that he didnt make any copies and since it is hours of work he can't possibly redo it so he recovered the files from my hard drive again , but i told him i deleted them and emptied recycle bin and that was when i came to know that not only cats have nine lives but files you create in windows have three lives too,and he showed me the program he used and it was full of files i recently deleted !, so what happens is when you delete a file it goes to recycle bin ,but infact it is not moved to the recylce bin at all it remains in the same location only its complete path and name is removed and placed in a hidden folder called recycled and the file is then renamed , its original name and path been stored in a hidden index file called info2 located in the recycled folder , so when we click restore in the recylce bin the original path is read from the the info file and the file is again renamed and its directory entry restored , so what happens when we clicke empty recycle bin ? no the file dont get deleted even now ! windows just changes the files path and name to indicate the space it occupied is no longer needed and is available for use ,but any time the OS needs sspace for any other file it may be overwritten , untill the file gets overwritten by the OS it still exists on the hard disk and is fully recoverable by using programs which enable file recovery , pretty cool for geeks who make the repeated mistake of deleting an important file and again deleting it from recycle bin and then pull their hair for being such a nerd huh ! :)

#2 AlanDS

    Newbie [Level 3]

  • Kontributors
  • PipPipPip
  • 49 posts

Posted 24 June 2006 - 08:21 AM

I wonder How the File Recovey softwares restore those old files. Some softwares even challenge the recovery of file after the file-system format! Really amazing!

#3 lone_wild_wolf

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 18 posts

Posted 24 June 2006 - 08:53 AM

Ok fine it goes to the recycle bin and then if deleted is not totally removied but just renamed and make permanently hidden......file recovering softwares jus look for the file extentions on the harddisk's hidden area and finds it.

#4 sportytalk

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 326 posts

Posted 24 June 2006 - 10:44 AM

Yep, the file's don't get deleted properly, even if you try emptying the recycle bin and then trying to manually delete the content from the recycler file. I tried debugging a friend's computer once and found this out for myself.

This person had an infected file on their computer and I moved it to the recycle bin. I then clicked empty which worked fine, we thought the file had gone but we were wrong. When we restarted the computer, the virus program alerted us that there was this virus, the same one i removed, in a folder called recycler.

Eventually, I managed to remove this in safe mode i think it was, although can't really remember. It was quite a long time ago. What i do remember though, is that I spent quite a while working out how to do it, as when I tried deleting, I was receiving access denied and unable to delete messages.

#5 Plenoptic

    Trap Double Mocha Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,310 posts
  • Gender:Male
  • Location:That one place over there...
  • Interests:baseball, webdesign, computer programming, more to be added later
  • myCENT:24.66

Posted 24 June 2006 - 03:43 PM

Ya I have heard about the same thing but sort of forgot how it worked. I would like to try to buy one of those programs in case I ever do delete a file that I need later on in life. I though all you had to do was find that hidden folder but I guess not. It is really helpful I'm sure in a work environment when you delete something important on accident.

#6 dselley

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 23 posts
  • Gender:Not Telling

Posted 24 June 2006 - 04:41 PM

I use a program called eraser to permanently delete documents you can find it here http://www.tolvanen.com/eraser/ it overwrites the file 35 times so it cannot be recovered very easily.

#7 mayank

    Mankie

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 770 posts
  • Location:New Delhi, India
  • Interests:working on my website, making friends, cricket.
  • myCENT:70.62

Posted 24 June 2006 - 09:28 PM

well, the concept is this that when you delete a file and erase the recycle bin its traces are left on the "harddisk clusters" and those traces are used by recovery softwares to recover the files. Now, if some data get written on those clusters then the file recovery software can get the data for you however, it may not be hundred percent correct..it may be corrupt file too!

Things get more and more technical with file recovery and how data acts on the harddisk and the harddisk functioning and all...so, if you actually want to know it then I'll suggest you do Google it :)

#8 kdr_98

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 219 posts

Posted 24 June 2006 - 10:09 PM

Actually, nothing has changed since the old MSDOS time.

A file exists in a linking of clusters (at the end of a cluster there is a link to the next cluster).
When deleting a file (you erase the first letter of the filename and mark the cluster as free).
The link to next clusters remains but they also marked as no longer in use.

So if you didn't write anything on your hard drive on the place of the clusters you can undelete the file from your harddrive.
If you want to delete files so you they can't be recoverd you have to wipe the entire free space on the disk (wipe = overwrite it with a dummy value), this can also be used for Memory cards of a Photo cam.

Even a format doesn't delete everything on the disk , with some programs you can recover the information on the drive.

#9 gaea

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 206 posts
  • Location:Vermont or Boston (USA)
  • myCENT:54.10

Posted 24 June 2006 - 11:48 PM

Yeah, the fact that files don't get really "deleted" until they're over written about 4 times has saved my *arse* a few times. Having acidentilly deleted a number of files, it was great to be able to recover them.

The program i used is called rest###...i'll try to put up a link to it when i get back to my own computer. It also has a security shredder that'll make files impossible to recover (by over writting their sectors 5-25 times).

#10 JOE IV

    Newbie

  • Kontributors
  • Pip
  • 1 posts

Posted 25 June 2006 - 12:20 AM

View Postmidnitesun, on Jun 23 2006, 11:27 PM, said:

now have you ever wondered what happens to a file when you delete it and empty the recycle bin ? surely it should not be in the computer by then ?? well i ahd a big sprise waiting for today morning when i turned on my computer , i will tell you waht happened , yesterday a colleague of mine put sum flash files on my desktop and when i went home i deleted them and emptied recycle bin assuming he should have made a copy and has taken to his computer , but when i turned on my office computer this morning the files i deleted were sitting right on my desktop again !! boy u'll bet i was suprised , so i asked him and he told me that he didnt make any copies and since it is hours of work he can't possibly redo it so he recovered the files from my hard drive again , but i told him i deleted them and emptied recycle bin and that was when i came to know that not only cats have nine lives but files you create in windows have three lives too,and he showed me the program he used and it was full of files i recently deleted !, so what happens is when you delete a file it goes to recycle bin ,but infact it is not moved to the recylce bin at all it remains in the same location only its complete path and name is removed and placed in a hidden folder called recycled and the file is then renamed , its original name and path been stored in a hidden index file called info2 located in the recycled folder , so when we click restore in the recylce bin the original path is read from the the info file and the file is again renamed and its directory entry restored , so what happens when we clicke empty recycle bin ? no the file dont get deleted even now ! windows just changes the files path and name to indicate the space it occupied is no longer needed and is available for use ,but any time the OS needs sspace for any other file it may be overwritten , untill the file gets overwritten by the OS it still exists on the hard disk and is fully recoverable by using programs which enable file recovery , pretty cool for geeks who make the repeated mistake of deleting an important file and again deleting it from recycle bin and then pull their hair for being such a nerd huh ! :)

Wow.. I never knew that. You can really recover files after deleting them from the recycle bin?

#11 Johnny

    [::Boy Wonder::]

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,096 posts
  • Gender:Male
  • Location:Costa Mesa, CA

Posted 25 June 2006 - 02:36 AM

So if the deleted file gets overwritten by new data, it's not really considered taking up space on the drive right? So what's the worry?

I could see privacy issues, but I never keep anything overly private on my computer, and nobody has access to it, so I don't really see why I would bother deleting...deleted...files.

#12 ghostrider

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 398 posts
  • Gender:Male
  • Location:Wisconsin

Posted 25 June 2006 - 03:17 AM

The way it works is when you delete a file from the recycle bin Windows simply marks the file as deleted in the FAT (or MFT if you're using NFTS), if Windows is searching for space to put a new file it has the option of overwriting the space of that deleted file. This is part of the reason why fragmentaion occurs; however if Windows were to actually delete the file completely it would take up a lot more time than it already does.

#13 mtvoyagers

    Member [Level 1]

  • Kontributors
  • PipPipPipPip
  • 59 posts

Posted 04 September 2006 - 02:20 AM

Huh i guess this could be a blessing for some people but for those seeking privacy, like an investiagtion company with high profile cases that are for the eyes of the person or group seeking the imformation, this can be a major problem, i knew that os-s did that but i guess i haddn't taken the time to put two and two together and actually relize what was happening, but its really no problem for me myself

#14 kawasu

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 237 posts
  • Gender:Male

Posted 04 September 2006 - 03:22 PM

ooo i alsos wondered how this process actually worked, i knew about it but i din get the whole shibang of it. i guess this will be a handy fact to remember next time i delete something by accident... which i do occasionally... i alsways shift+del so when i get a wrong file i totally screw myself over >< thanks for this info haha, i'll keep it in mind next time. gotta go find an application which finds these files now ;D

#15 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 15 April 2008 - 03:41 PM

What will I do?
What Happens To A File When You Delete It From Windows ?

I accidentally entered a wrong Command on Command Prompt and Accidentaly deleted all my Files . How will I get all those Files back? Is there Any way I could do that?

-reply by Dino

#16 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 11 December 2009 - 09:49 PM

what happend to those processes?What Happens To A File When You Delete It From Windows ?

Ok so my computer was being REALLY REALLY REALLY slow. So I hit Ctrl Alt and Delete so I could end the programs that wern't responding. That didn't work out so well. So then I clicked the tab 'Processses' and started to delete the majority of those. Next thing I notice the background has nothing on it. Like, no icons of anything. Did I delete those icons and completely wipe them clean from my computer?!?! If I did,how can I get them back?!?!

-reply by Miyu

#17 deadmad7

    Privileged Member

  • KS GFX Crew
  • PipPipPipPipPipPipPipPipPip
  • 869 posts
  • Gender:Male
  • Location:Standin' right behind you...
  • Interests:Ultra Pwning...
  • myCENT:-61.71

Posted 25 December 2009 - 10:09 AM

View PostJOE IV, on Jun 25 2006, 01:20 AM, said:

Wow.. I never knew that. You can really recover files after deleting them from the recycle bin?

iv'e heard that you have to format your hard drive seven times to completely erase data on a hard drive from ever being found.

#18 Guest_Ben_*

  • Guests

Posted 30 July 2010 - 02:02 PM

View PostiGuest, on 11 December 2009 - 09:49 PM, said:

what happend to those processes?What Happens To A File When You Delete It From Windows ?<p>Ok so my computer was being REALLY REALLY REALLY slow. So I hit <em>Ctrl Alt</em> and<em> Delete</em> so I could end the programs that wern't responding. That didn't work out so well. So then I clicked the tab '<em>Processses</em>' and started to delete the majority of those. Next thing I notice the background has nothing on it. Like, no icons of anything. Did I delete those icons and completely wipe them clean from my computer?!?! If I did,how can I get them back?!?!</p>-reply by Miyu


You probably stopped the process "Explorer.exe" which has somthing to do with your desktop, i did that once and it went blank but it was fine after i restarted my computer. You files should of returned but never do that again cos half of those are needed to run your computer normally.

#19 Guest_Raghu_*

  • Guests

Posted 15 August 2010 - 06:10 AM

View Postmayank, on 24 June 2006 - 09:28 PM, said:

well, the concept is this that when you delete a file and erase the recycle bin its traces are left on the "harddisk clusters" and those traces are used by recovery softwares to recover the files. Now, if some data get written on those clusters then the file recovery software can get the data for you however, it may not be hundred percent correct..it may be corrupt file too!

Things get more and more technical with file recovery and how data acts on the harddisk and the harddisk functioning and all...so, if you actually want to know it then I'll suggest you do Google it :)

My question is if the files are hidden or present somewhere in hard disk it'll occupy the space of hard disk. bt practically if the files are deleted there'll be the increased space in hard disk. what may be the reason???




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users