If you have unused packages in your system, there is a tool that can help you clean them out.
The gtk orphan package present in the repositories of ubuntu can be conveniently used to clean up your system. It allows you to graphically select and remove packages that are no longer used.