diff --git a/app/server/lib/DocWorker.ts b/app/server/lib/DocWorker.ts index 3c0de23c..48444d00 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(); }