What to do about HUGE db file

My db file is 2.7G, is there a way to shrink it? or reset it?

Hello, @knichel! Could you specify which .db item this is in particular?

$ ls -alh .config/Insync/live/
total 2.9G
drwxrwxr-x 2 knichel knichel 4.0K Jan 5 06:59 .
drwx------ 5 knichel knichel 4.0K Jan 5 06:59 …
-rw-r–r-- 1 knichel knichel 277M Jan 5 06:57 live-gd-102266809790590111197.db
-rw-r–r-- 1 knichel knichel 2.6G Jan 5 06:59 live-gd-111040506704848675695.db
-rw-r–r-- 1 knichel knichel 4.1K Jan 5 06:59 live-gd-111040506704848675695.db-wal

I see!

It’s safe to remove these files while Insync is not running, but note that the file will be recreated once you restart the app. Are you doing a large sync, by any chance?

Which file are you referring to? There are 2 .db files…

Will that file grow to that size if I delete it? How will deleting it impact performance on the next sync?

I sync my documents and a few other folders like /etc /var … About 1TB total

Hi @knichel,

Thank you for waiting! You can delete these files safely if they are still ballooning:

There should not be any issues when you do so, and I have tested that on my end to ensure that it will not impact your workflow negatively. The size of these files is related to the number of cloud files that Insync scans - it’s basically like a local cache of the cloud state. So, the more files are being scanned, the larger the file will be.