Alarm Delete

861 views
Skip to first unread message

Stathis Efstathiou

unread,
Nov 25, 2013, 2:00:46 PM11/25/13
to tas...@googlegroups.com
Hi everyone. I know that tasker can create an alarm but not delete. Is there ANY way either with a plugin, secure settings, scripting or anything else that we can delete an alarm?

nanobrain

unread,
Nov 25, 2013, 3:28:24 PM11/25/13
to tas...@googlegroups.com
Gentle Alarm allows to set and unset either all or individual (named) alarms. The command is installed under the 3rd party section of Tasker.

Cptnodegard

unread,
Nov 25, 2013, 4:14:09 PM11/25/13
to tas...@googlegroups.com
On a general basis: Delete alarms? Yes. Cancel them? No. Set alarms are stored in Android in a way that makes them go off even if you delete them from the app using ways other than actually clicking the buttons in the app. 

Except with Gentle Alarm and possibly others that have a feature for doing it with other apps built in. 

fuzzylogic

unread,
Dec 3, 2013, 2:30:22 PM12/3/13
to tas...@googlegroups.com
for example, to deletele alarms from stock app you just need to put this string in Run Shell task (with root checked): 
sqlite3 /data/data/com.sec.android.app.clockpackage/databases/alarm.db 'DELETE FROM alarm'

понедельник, 25 ноября 2013 г., 23:00:46 UTC+4 пользователь Stathis Efstathiou написал:

Tobias Hau

unread,
Feb 28, 2014, 6:10:06 PM2/28/14
to tas...@googlegroups.com
Yes @fuzzylogic and in kitkat you run for example:
sqlite3 /data/data/com.android.deskclock/databases/alarms.db 'UPDATE alarm_templates SET delete_after_use=1'
to kill every set alarm after it has ringing... took me so much time tho find the solution. Now I'm realy happy. Thx to guide me...

Scott S

unread,
Jul 19, 2014, 2:58:00 PM7/19/14
to tas...@googlegroups.com
How do I change the ringtone in this same manner? I see it listed as 'content://...'. I've attempted such (ringtone=content://...) and the actual uri and can't get it to work.

Logan Fury

unread,
May 13, 2017, 4:26:49 PM5/13/17
to Tasker
Sorry to bring back an old thread, but would anyone know how to perform this in the Lollipop OS for different clock applications?

I note in the code what seems to be the packagename for the default clock. I tried substituting the package name for Smart Alarm clock and got an error.

my attempt from a rooted shell was:

sqlite3 /data/data/jp.tanyu.SmartAlarm/databases/alarm.db 'DELETE FROM alarm'

This failed and gave me an 'error 127'

does anyone know if its possible to code an alarm delete (not cancel) for other than the stock clock?

Thank you

Logan Fury

unread,
May 13, 2017, 9:03:02 PM5/13/17
to Tasker
Ive checked the package name of the default clock and it remains the same in lollipop and marshmallow. I tried the original code as presented here:

sqlite3 /data/data/com.sec.android.app.clockpackage/databases/alarm.db 'DELETE FROM alarm'

and this failed to delete the test alarm I had placed in default clock. Even if other applications arent compatible with this code command would it be possible to just get an updated version of what worked for default clock, edited for Lollipop?
Reply all
Reply to author
Forward
0 new messages