This question already has an answer here:

I was trying to delete a directory that I made using catkin_make( so I asked google) I used the fallowing code in catkin_workspace $ sudo rm -rf * I got trolled and deleted everything in Home

Is there a way to restore the Home folder?

marked as duplicate by A.B., Eric Carvalho, Community Jul 14 '15 at 10:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

The default files inside your home folder will be re-created when you log in again. Do not do that since it might make it impossible to recover your personal data.

As for your personal documents: preferred method would be to restore those from a backup. If you do not have any you will need to rely on software like testdisk to find those files. Topics on recovering data:

Recovery tools work best if you did nothing with the space the deleted files occupied on disk.

Not the answer you're looking for? Browse other questions tagged or ask your own question.