diff --git a/src/Collections/Main.tsx b/src/Collections/Main.tsx index c5b7cb4..f2a773b 100644 --- a/src/Collections/Main.tsx +++ b/src/Collections/Main.tsx @@ -53,7 +53,7 @@ export default function CollectionsMain() { async function onDelete(collection: Etebase.Collection) { const colMgr = getCollectionManager(etebase); - await collection.delete(); + await collection.delete(true); await dispatch(collectionUpload(colMgr, collection)); history.push(routeResolver.getRoute("collections")); diff --git a/src/Pim/helpers.tsx b/src/Pim/helpers.tsx index 6d41628..c6ae616 100644 --- a/src/Pim/helpers.tsx +++ b/src/Pim/helpers.tsx @@ -114,7 +114,7 @@ export async function itemDelete(etebase: Etebase.Account, collection: Etebase.C const meta = await eteItem.getMeta(); meta.mtime = mtime; await eteItem.setMeta(meta); - await eteItem.delete(); + await eteItem.delete(true); await asyncDispatch(itemBatch(collection, itemMgr, [eteItem])); }