Wednesday, 21 February 2018

arcgis desktop - Un-deleting folder accidentally deleted in ArcCatalog?


aka "dude where's my OOPS command?"


I accidentally hit the DEL key with a folder selected in ArcCatalog, and it's apparently gone forever. There was no warning message shown, and it doesn't go into the Recycle Bin.


Is there a way to recover it, short of restoring a backup?



Edit - it was my fault no warning message was shown, as I had switched off that option in the Recycle Bin settings.



Answer



I'm not sure why you got no warning message. My machine prompts me with the typical Windows message of "Are you sure you want to delete this? Yes/No" if I use the delete key on anything. In fact if I delete a folder (not a geodatabase or any kind of individual file, feature class, etc.) using the key, it does send it to the Recycle Bin. I'm on 10.2 on Win 7 at the moment.


There are potentially data recovery methods to get stuff back without restoring a backup, but time (or more accurately continued activity) is a critical factor. Any continued work or anything saved to the computer (including background information written by the OS) could potentially overwrite the data you want to recover.


The absolute safest thing to do is shut the machine down, pull the drive, and access it using another machine. However a quicker alternative that is usually still viable is just to download and install a recovery program to a different drive or USB key, then run it and see if you can still 'undelete' your files. One free utility to do this is Recuva. There are some others, as well as paid-for programs that do similar or more extensive recoveries. For a simple delete though, that one should do.


Even if they aren't in the Recycle Bin, deleted files typically aren't actually deleted - just the pointers to them. They're only gone when they're overwritten on the drive.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...