When a document is deleted, the DB rows for local words are correctly removed via cascade, but the corresponding whitelist table files on disk are left behind as orphans.
Files affected: {tables-dir}/sbs-de-{grade}-white-{identifier}.mod (4 files per document)
Why it doesn't matter much: Document deletion is rare, and in practice it almost always happens before any local words have been added — so there are typically no whitelist files to clean up.
Fix: documents/delete-document should also call whitelists/tables/delete-local-tables (or equivalent) for the document's identifier before removing the DB record.
When a document is deleted, the DB rows for local words are correctly removed via cascade, but the corresponding whitelist table files on disk are left behind as orphans.
Files affected:
{tables-dir}/sbs-de-{grade}-white-{identifier}.mod(4 files per document)Why it doesn't matter much: Document deletion is rare, and in practice it almost always happens before any local words have been added — so there are typically no whitelist files to clean up.
Fix:
documents/delete-documentshould also callwhitelists/tables/delete-local-tables(or equivalent) for the document's identifier before removing the DB record.