Indeed, removing a folder in Linux is quite safe, especially when you make use of interactive and preview options before final deletion. Initially, verify the contents with ls foldername to make sure that you are aware of the items that will be deleted. After that, execute rm -ri foldernamewhich allows you to remove files recursively but, at the same time, prompts you for confirmation before each removal. This is a very effective way to avoid unintentionally losing your essential files. Alternatively, you can send the folder to a backup location using mv foldername /path/to/backup prior to deleting it. You should definitely refrain from using rm -rf unless you are absolutely certain, because this command will delete everything permanently without any notice. Read more: https://datarecovee.com/how-to-remove-a-directory-in-linux/