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:
parent
e943b0605f
commit
2d1e6e394d
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user