Protecting files from unwanted deletion is very important security on the tasklist of Unix Administrators. On Linux boxes you can use the chattr command.
Let’s give you some examples how chattr work under Linux -
To make a folder undeletable, run -
sudo chattr +i -R foldername
After that, you can ...more ...