How to Remove Lenses from Ubuntu 11.04 Unity Launcher

We have already discussed in length about Lenses, one of the key new feature brought about by Ubuntu's new Unity desktop. Lenses for 'Applications' and 'Files & Folders' are default in Ubuntu 11.04 Natty Narwhal and then there are these awesome, still-in-development Lenses that you can install and experiment right now. Now, how do you actually remove the Lenses you don't want from Unity Launcher? Here is what you need to do. 

How to remove or delete Lenses from Unity Launcher

How to Remove Lenses Icons from Unity Launcher?
  • All your installed Lens's files will be available in /usr/share/unity/places/ directory. Open it as root in Nautilus. For that, do the following in Terminal.
gksudo nautilus /usr/share/unity/places
  • Since I have installed many additional Lenses, my 'places' directory looks like this.
How to Remove/hide Lenses/places from Ubuntu 11.04 Unity Launcher
  • Open the specific Lens, like say Applications Lens for example, to edit. Find out the line which says 'Shortcut=a'(it will be 'r' in place of 'a' for reddit, 'g' for gwibber and so on). Add the following line immediately below it.
  • Now, restart Unity. Hit Alt+F2 and run the following.
unity --replace
  • Done. The specific Lens you wanted to remove/delete/hide from the Unity Launcher must have disappeared already.
  • If it doesn't worked for some reason, log out and log back in. 
Hope it worked for you. Thanks to askubuntu. Want to learn a lot more about newest Ubuntu and Unity interface? Here is everything you need to know about Ubuntu 11.04 Natty Narwhal.