Delete latest received and sent SMS

2,766 views
Skip to first unread message

MJ1972

unread,
Jun 7, 2012, 5:13:40 AM6/7/12
to tas...@googlegroups.com
I'm using a "reply with street address" profile which is triggered by sending an SMS containing a given string to my phone. It then does the GPS / Google maps thing and replies with the street address for it's location.

However, I want to delete both the incoming and sent texts from the phone immediately, so that if it's in someone else's hands they are unaware that it has been located.

Is this possible?

Matt

unread,
Jun 8, 2012, 6:30:00 AM6/8/12
to tas...@googlegroups.com
Hi, not possible at the moment I don't think (at least not with the stock messaging app) they are on the to do list though so fingers crossed they'll make an appearance (I'm particularly keen to see the SMS stuff be added myself), However the list is a looooooooooooong one ( http://tasker.dinglisch.net/todo.html ) and other people are more interested in other bits of it,we'll just have to keep our fingers and toes crossed :)

Matt

Unicyclist

unread,
Jun 8, 2012, 3:44:37 PM6/8/12
to tas...@googlegroups.com
Tasker can't yet delete incoming messages. You can make the outgoing message invisible though. Just uncheck "Store In Messaging App" in the send SMS line of your task. You can make your code extra sneaky; send your lost phone a message that says "I almost died trying to swallow a whole pineapple!" or something like that. The thief won't have any clue that you're triggering your phone to report it's location, & I doubt that the profile would get accidentally triggered with a strange comment like that! You can just make one word or phrase your code, & build a sentence around it that's different each time.

Pawci0

unread,
Jun 8, 2012, 5:16:26 PM6/8/12
to tas...@googlegroups.com
Actually deleting sms messages is possible if you have rooted phone.
You can do this using "Run shell" action and some simple SQLite query to the sms database.
I've made a simple task that runs a query given by %par1 and returns the result.

Unicyclist

unread,
Jun 10, 2012, 5:46:36 PM6/10/12
to tas...@googlegroups.com
Would you mind posting how to do that?

david morin

unread,
Jun 21, 2012, 7:50:34 AM6/21/12
to tas...@googlegroups.com
I second that... Do you have the script you wrote?

Pitt Numa

unread,
Feb 19, 2013, 7:11:09 PM2/19/13
to tas...@googlegroups.com
Sorry to drag up an old post but was this made available? I have a security app that is triggered by an sms, along with other settings triggered in tasker by the sms but I want to either hide the sms or delete it, hoping that can do it.

GermainZ

unread,
Feb 19, 2013, 7:23:58 PM2/19/13
to tas...@googlegroups.com
I don't have the time to do this, but if you're rooter ... Google "delete sqlite row" then use something like this command (you must be rooted; if you don't have sqlite3 Google it):
sqlite3 /path/to/messaging/database.db "COMMAND"

Also, some versions I've encountered seem corrupted and fail without errors. You might want to try another one in that case.
I've linked my working version here, BTW: https://groups.google.com/forum/#!topic/tasker/I-kpDEU3rsY
Make sure you give it correct permissions.

GermainZ

unread,
Feb 19, 2013, 7:24:59 PM2/19/13
to tas...@googlegroups.com
rooted*

Also, if in doubt, post the path to your messaging database. Some one with more time (maybe me later) will certainly help you :)
Obviously, if you figure it out - share it just like you would like it to be shared.

easiuser

unread,
Feb 19, 2013, 10:54:59 PM2/19/13
to tas...@googlegroups.com
This works for me.
Reply all
Reply to author
Forward
0 new messages