From e9806c03eea93fbb6b646152a4a555f562525644 Mon Sep 17 00:00:00 2001 From: wunter8 Date: Tue, 7 Nov 2023 13:17:28 -0700 Subject: [PATCH] fixes #718 I saw the issue and thought it looked like a quick change. I hope this is accurate! --- app/server/lib/DocWorker.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/server/lib/DocWorker.ts b/app/server/lib/DocWorker.ts index 3c0de23c8b..48444d0040 100644 --- a/app/server/lib/DocWorker.ts +++ b/app/server/lib/DocWorker.ts @@ -214,6 +214,8 @@ async function removeData(filename: string) { for (const tableId of tableIds) { await db.run(`DELETE FROM ${quoteIdent(tableId)}`); } + await db.run(`DELETE FROM _grist_Attachments`); + await db.run(`DELETE FROM _gristsys_Files`); await db.close(); }