107

I'm wondering how it's possible to remove the little mail indicator applet in the global menu. I've uninstalled all the programs that use it, like Thunderbird, Empathy, and Gwibber, since I don't use any of them, but the icon is still there.

Any ideas?

Jorge Castro
  • 71,754
Icedrake
  • 3,695

12 Answers12

93

You can remove the message indicator by removing the indicator-messages Install indicator-messages package by clicking on that link and clicking uninstall. Or by executing the following command in a terminal:

sudo apt-get remove indicator-messages

Then log out and back in.

Jorge Castro
  • 71,754
  • 2
    @When I did that, this icon disappeared. However, it caused some bugs to emerge - clock/calendar is dissappearing from time to time and sometimes programs menu bar integrated with top bar is not working properly. Any idea why? – Rafal Oct 25 '13 at 10:20
  • 25
    No need to logout just run killall unity-panel-service – desgua Apr 28 '14 at 12:27
  • 14
    Why uninstall a package used by multiple programs when you can just disable the Thunderbird addon? – Ian Dunn Apr 25 '15 at 07:04
  • 4
    @IanDunn because many people, like the person who asked the original question, don't use any of the multiple programs that use indicator-messages. – Michael Martin-Smucker May 04 '15 at 05:48
  • 4
    I have to agree with @IanDunn, the least intrusive method should be used. Naive users dont understand how heavy of an impact removing certain services might have, so simply disabling the icon, rather than removing the entire service, would be the better suggestion. You can then supplement your answer by suggesting the removal of the service/app. – Todd Dec 02 '15 at 00:00
  • This seems a bit shady, I don't want to disable indicator messages overall, I just want to disable the Evolution mail thing... is that what this answer does? – Nearoo Feb 14 '17 at 12:51
76

If Thunderbird Mail is installed and is the default mail application in system settings->Details: then start Thunderbird, go to menu->Tools->Add-ons->Extensions and disable Thunderbird extension "Messaging Menu and Unity Launcher integration". Quit Thunderbird. Logout and Login to Ubuntu.

This solved it on Ubuntu 14.04 and 16.04 LTS without the need to uninstall anything.

muru
  • 197,895
  • 55
  • 485
  • 740
yoyoma2
  • 1,225
8

Remove the package indicator-messages from within the Ubuntu Software Center.

Then reboot, gone!

sarvesh.lad
  • 2,524
6

This instruction will not remove the sound icon on Ubuntu 12.04 (Precise)

The program can be uninstalled from your system by opening the program "terminal", and typing in

sudo apt-get remove indicator-messages -y

It will ask you for your password, and then it will remove the program from your system.

Sepero
  • 4,557
6

The messages indicator only appears when an application has registered to use it; by default, no applications are registered to use it, meaning that the messages indicator is hidden. However, some applications, such as Thunderbird, register with the indicator as soon as you open them and leave no apparent way to remove them.

My solution is to reset the list of applications registered with the indicator to the default (empty), then kill the indicator to refresh it.

Open a terminal and copy/paste the following:

dconf reset /com/canonical/indicator/messages/applications
killall indicator-messages-service
Hitechcomputergeek
  • 1,163
  • 2
  • 11
  • 18
  • 2
    This worked for me. I uninstalled Thunderbird but the icon was still there. Followed the instructions and now it's gone and stays gone. Seems less dangerous than removing the indicator package completely. – Alan Plum Feb 03 '17 at 15:27
4

On 12.04 (precise):

sudo apt-get remove -y indicator-messages
killall indicator-messages-service
killall unity-panel-service
2

There is a word of caution for removing the e-mail icon. You will also loose the Sound Control icon as both are connected to each-other. By removing the "indicator applet" package you will no longer be able to access or control the sound settings by clicking on the panel icon.

Kat Amsterdam
  • 2,721
  • 1
  • 17
  • 17
2

this works in the gnome shell for 11.04, not sure about Unity interface:

open synaptic + remove "indicator-messages" + log out and log back in

13east
  • 1,945
  • I really don't know how to "open synaptic".... – 700 Software May 25 '11 at 17:57
  • @George: if you use Unity: open the Dash (click on the ubuntu symbol in the top left corner), start typing 'synaptic', and click on 'synaptic package manager'. – joris May 25 '11 at 18:47
  • @joris: Is this permanent? I don't want to get rid of it if there is no way to get it back. – 700 Software May 25 '11 at 21:17
  • 1
    @GeorgeBailey If you want it back you just install that package again (which would require the CD or another way to transfer the package's installation data to the machine since there's no internet). – htorque May 25 '11 at 22:00
1

1) In a terminal:

sudo apt-get remove indicator-messages
sudo killall gnome-panel

This will remove the package, and then remove the icon without rebooting.

Dan S.
  • 11
  • 1
0

So doing a removal of "indicator-messages" will result in removing more then you want like the sound indicator and others. for a list of what you might remove start dconf editor and look under /com/canonical/indicator/messages/applications to see what is there. Having made this mistake of removing indicator-messages" the best solution is to edit /com/canonical/indicator/messages/applications and only remove what you want. In my situation I only had to reset (Default:[])/com/canonical/indicator/messages/applications/thunderbird.destop that set this to blank. re:List of applications that are shown in the messaging menu, Applications corresponding to the desktop file ids in this list are shown in the messaging menu. SO I vote for "Hitechcomputergeek contribution number 5

James N.
  • 49
  • 6
0

Run sudo apt-get remove indicator-messages and then either log out or run killall unity-panel-service for the changes to take effect.

goulon
  • 1
  • 1
-1

On Ubuntu 10.10 or earlier versions click with right mouse button on the icon and click on Remove From Panel

On Ubuntu 11.04 (Unity) click with right mouse button on the icon and click on Keep In Launcher Removing icons on Ubuntu 11.04 Classic works the same as on Ubuntu 10.10

tinuz
  • 3,952