Howto Restore broken Ubuntu 7.04 Desktop

I screwed up my Ubuntu desktop. I accidentally deleted the panels and the icons on my Ubuntu desktop. The whole desktop is messed up, I can't figure out how to restore it?

After googling around, I found a solution how to fix this mess. To restore the Desktop settings, just run these command in the console:

cd /home/username
rm -rf .gnome2 .gconf .gconfd .metacity

Then reboot your computer

sudo reboot

After rebooting, your Desktop will return to its default settings.