Change remote_wipe to delete objects individually

Certain CalDAV servers prohibit a single DELETE request to be sent to
the calendar collection root. Instead items need to be deleted one by
one.

Signed-off-by: Randy Ramos <rramos1295@gmail.com>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Randy Ramos 2017-09-06 17:33:34 -04:00 committed by Lukas Fleischer
parent e943b0605f
commit 2d1e6e394d

View File

@ -183,7 +183,9 @@ def remote_wipe(conn):
if dry_run:
return
remote_query(conn, "DELETE", path, {}, None)
remote_items = get_etags(conn)
for href in remote_items:
remove_remote_object(conn, remote_items[href], href)
def get_syncdb(fn):