I suggest adding immunity to files or folders that you feel as important!!
so that you will not accidentally delete those files...again if you are a root user nothing can stop
root is god on the unix/linux system!!
add immunity to your file this way:
chattr +i file
if you are a non-root user use "sudo chattr +i file"
to remove immunity "chattr -i file"
this should help you in accidental deletions!
-ilan