What do you mean you used the rm command? What were you removing? Do you mean you were trying to uninstall pulse audio? If you are trying to uninstall something you should use:
This should remove any configuration files/folders associated with the package.
sudo apt-get purge <package_name>
If you want to keep the files then you can use:
I personally don't use pulse audio and stick with Alsa. The following shows how you can remove it if that is your wish.
sudo apt-get remove <package_name>