Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to remove clock from the top panel in gnome-shell? enter image description here

share|improve this question
up vote 5 down vote accepted

It is possible by creating an extension.

mkdir -p ~/.local/share/gnome-shell/extensions/Disable_Clock@ocelot
cd  ~/.local/share/gnome-shell/extensions/Disable_Clock@ocelot

Make a metadata.json file.

gedit metadata.json

Cut following code, and Paste into the editor ,and Save.

{"shell-version": ["3.2"], "uuid": "Disable_Clock@ocelot", "name": "Disable Clock", "description": "Disable Clock from the top of panel"}

Make an extension.js file.

gedit extension.js

Cut following code, and Paste into the editor ,and Save.

const St =;
const Main = imports.ui.main;

function init(meta) {

function enable() {

function disable() {

Restart gnome-shell and Turn on "Disable Clock" extension by gnome-tweak-tool

share|improve this answer
Great! Thank you! Really good way with a possibility to turn it back easily. [For anyone else who might use this: I had to run gedit lines with sudo!] – Laurynas Nov 14 '11 at 15:23

Hide the clock in your current session with this command:

dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:';'
share|improve this answer

Press Alt+Right click the clock, there should be an entry saying Remove from panel.

share|improve this answer
Using Alt key while Right clicking clock doesn't seem to to anything, it just opens calendar like a simple Left click. Am I doing something wrong? – Laurynas Nov 13 '11 at 15:20
That works in fallback mode with compiz disabled – Bruno Pereira Nov 13 '11 at 15:39
Yes! Press the Alt first and right click on the clock and a popup will ask you for 'Remove' and 'Remove from panel' choose 'remove from panel and select 'Don't reload'. Try it again. – all4naija Nov 13 '11 at 15:44
You actually need alt-super-right – Amanda Jun 25 '12 at 17:21

At teminal type the following:

sudo apt-get remove indicator-datetime
share|improve this answer
Removed indicator-datetime, rebooted system, clock is still there – Laurynas Nov 13 '11 at 14:52
@Laurynas seriously? I kinda want to remove the indicator now to see if your joking. The is really still there? – BullfrogBlues Jan 3 '13 at 21:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.