Calendar-PhoneGap-Plugin icon indicating copy to clipboard operation
Calendar-PhoneGap-Plugin copied to clipboard

Delete all events created using the plugin

Open ants-house opened this issue 9 years ago • 2 comments

Hey there,

thanks for providing such a great plugin! I'm adding a lot of events to the users calendar and I want to be able to delete all those added events again. But I don't know the exact data anymore, that's why deleteEvent() will not work for me.

On android it is not possible to create a new calendar, where I can put my events in and delete the whole calendar if necessary. So I need a possibility to delete events by one single property (e.g. the notes field contains a UUID). Any idea?

Thanks a lot!

ants-house avatar Jul 22 '15 13:07 ants-house

This works for me on Android but for some reason not on iOS. Still trying to figure out why.

UPDATE: Did not see the 4 year date span bug that is part of iOS. So I updated the date span to be less than 4 years and it works great on both Android and iOS.

        var startDate = new Date('2014-01-01');
        var endDate = new Date('2016-01-01');
        var title = '{ID=123456789'}';
        var eventLocation = '';
        var notes = '';

Where the ID is some unique thing for a bunch of related events. Note other text can follow the {}. Once it finds that at the beginning of the string it's OK.

aesculus avatar Aug 11 '16 21:08 aesculus

Is there any updates for iOS? It would be good to have a function that "cleans" all the events in calendar.

sgs1 avatar May 24 '19 09:05 sgs1