Mass editing/deleting tasks

By using Outlook CalDav Synchronizer together with nextcloud several thousand completed tasks have been imported into my nextcloud. Unfortunaltely they cannot be deleted by using the sync tool.
Is there any way I can safely remove the tasks from calenderobjects and/or calendarobjects_props?
Or anyone with other ideas?

thank you,