Clearing recent documents history in Ubuntu 11.04

/
0 Comments
Hi all....

In GNOME environment it is an easy deal to clear history of recently used document. Just go to “Places” > “Recent Documents” from in custom menu & choose  “Clear recent Documents”. 

But in Ubuntu 11.04 (Unity environment) I'm not able to find out such direct GUI way. So I asked google about the same :). So i come to know that recent document history is managed by Zeitgeist client & I came to know set of commands to do this. You can fire following commands to clear recent 
document history: 


rm ~/.local/share/recently-used.xbel
touch ~/.local/share/recently-used.xbel
rm ~/.local/share/zeitgeist/activity.sqlite 
zeitgeist-daemon --replace  


These commands clears recent document history & restarts zeitgeist-daemon. Here restarting zeitgeist-daemon will take significantly long amount of time so please stay cool & let it restart itself :).


If you don't want to type or copy/paste these command every time then copy paste following lines in a file & set "executable bit" of this file. Now clearing recent document history is just double click away. :)


#! /bin/bash


DELPATH=~/.local/share


rm $DELPATH/recently-used.xbel
touch $DELPATH/recently-used.xbel
rm $DELPATH/zeitgeist/activity.sqlite
zeitgeist-daemon --replace



Fill free to leave comments .. 


You may also like

Popular Posts