We have moved to a new Sailfish OS Forum. Please start new discussions there.

How to delete call history and sms history? [answered]

Tracked by Jolla

asked 2014-10-19 18:51:02 +0300

human19 gravatar image

updated 2020-01-05 03:12:23 +0300

rozgwi gravatar image

I have nearly a year of call history in the phone at this stage.

As there is no option to delete all of these apart from doing each individually, Is there maybe some file which holds all this information which I could just delete ?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by eric
close date 2014-10-23 09:14:31.089737


I have posted a request for the text message option : https://together.jolla.com/question/22708/option-to-delete-all-texts-in-the-messaging-app/

BUT as far as I can see, you will have to delete them one by one

Mariusmssj ( 2014-10-19 19:04:43 +0300 )edit

Just wondering, why would you want to delete call history?

I find it wonderful that SailfishOS has such a long-back memory, as other devices keep jut a short list of recent calls or clear the list on boot. Especially as it does not hinder you at all, it doesn't make the device slower or whatever used to happen to olden devices.

juiceme ( 2014-10-19 23:08:42 +0300 )edit

I also created a request months ago , before the emails the block deletion of emails was added but obviouslyit wasnt acted on. I like to keep things tidy, and to get rid of unnecessary clutter.

human19 ( 2014-10-20 01:37:28 +0300 )edit

2 Answers

Sort by » oldest newest most voted

answered 2014-10-20 13:27:06 +0300

Kontio gravatar image

There is a development command line tool available, which can do that and you need developer mode enabled to use it.

As with any developer tool, it does not guarantee that it suits your purpose, might change suddenly it's behaviour from one to an other release, not work as advertised and if you break it you have to keep both of the pieces! So before playing around, create a backup! And close all running applications. And you might loose an SMS or other msg which comes in just during executing the command! So you have been warned and use it on your own risk :)

[nemo@Jolla ~]$ commhistory-tool 
commhistory-tool listgroups
             list [-t] [-p] [-group group-id] [local-uid] [remote-uid]
             listcalls [{bycontact|bytime|bytype|byservice}]
             add [-newgroup] [-group group-id] [-startTime yyyyMMdd:hh:mm] [-endTime yyyyMMdd:hh:mm] [{-sms|-mms}] [{-in|-out}] [-n number-of-messages] [-async] [-text message-text] local-uid remote-uid
             addcall local-uid remote-uid {dialed|missed|received}
             addVCard event-id filename label
             isread event-id {1|0}
             isvideo event-id {1|0}
             reportdelivery event-id {1|0}
             setstatus event-id {unknown|sent|sending|delivered|temporarilyfailed|permanentlyfailed}
             delete event-id
             deletegroup group-id
             deleteall [-groups] [-calls] [-reset]
             export [-group group-id] [-calls] [-groups] filename
             import filename
             import-json [-relativeDate yyMMdd] filename
When adding new events, the default count is 1.
When adding new events, the given local-ui is ignored, if -sms or -mms specified.
New events are of IM type and have random contents.

so with commhistory-tool deleteall you can delete all call and sms/facebook/xmpp/googlechat/mms history. With -calls you can limit it on calls and with -groups you can limit it on sms/facebook/xmpp/googlechat/mms history.

In case commhistory-tool is not available, you have to install the package libcommhistory-qt5-tools.

edit flag offensive delete publish link more


Thanks, very useful info. Is there anywhere I can find out what other developer tools are available? I'm sure this is well documented somewhere, but that is info I totally missed.

eson ( 2014-10-20 17:56:09 +0300 )edit

AFAIK unfortunately such a list or overview is not available :( if you work the the libs or the developers you pick up one or the other thing. Maybe somebody could start a cheat-sheet wiki to collect such tools.

Kontio ( 2014-10-21 14:21:47 +0300 )edit

A cheat-sheet wiki would be very nice and useful for all us "not-so-knowledgeable-Sailfish-hackers". Thanks for answering anyway.

eson ( 2014-10-21 18:38:44 +0300 )edit

Excellent, thanks

human19 ( 2014-11-15 23:12:23 +0300 )edit

The commhistory-tool deleteall no longer seems to delete call history either alone or with -calls appended. It does still delete sms texts though

human19 ( 2015-08-15 20:47:23 +0300 )edit

answered 2014-10-19 22:10:46 +0300

Robomike gravatar image

The file is located in /home/nemo/.local/share/commhistory/commhistory.db. But: DO NOT DELETE THIS!!! (I have no idea what happens if you delete it. Maybe there's someone out there who tried out, but not me. I warned you.) It's a sqlite database. If you are familiar with manipulating databases from command line or if you have a tool like sqliteman (linux), you may do so with a copy of this file. Always keep the original file as backup.

edit flag offensive delete publish link more


Okay, I had better leave it, so. Thanks

human19 ( 2014-10-20 01:38:07 +0300 )edit

Question tools



Asked: 2014-10-19 18:51:02 +0300

Seen: 4,034 times

Last updated: Oct 20 '14