Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # delete all imported holidays from Android Calendar
- # set database - this will change depending on which app you use
- db="/data/data/org.fossify.calendar/databases/events.db"
- #backup original db
- cp $db /sdcard/events_$(date +%Y-%m-%d).db
- # list calendars
- sqlite3 $db "select source from events" |sort -u
- # Holidays will be under 'imported-ics'
- # check and make sure that is only holidays
- sqlite3 $db "select title from events where source='imported-ics'"
- # once confirmed, delete all events from that calendar
- sqlite3 $db "DELETE FROM events WHERE source='imported-ics'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement