Look for a .deleted directory under your data/ directory. The files may
not have been deleted but moved aside due to the
enable_database_recovery setting, or because the DB was still in use
when you restarted CouchDB.
Another useful command is:
$ du -sh /opt/couchdb/data/*
which should tell you where the storage is being used. Does this show
anything useful to you?
-Joan
On 2019-05-01 2:22 p.m., Frank Walter wrote:
Hello
I have CouchDB v2.3.1 (on Ubuntu 14.04) and I use it only for creating
Wikipedia databases with mwscrape.
My shards folder was too big, over 50 GB big, so I deleted one big db
(frwiki) which had 32 GB in Fauxton. That db is gone now.
After this, I thought now my shards folder should be about 20 GB but it
is still 52 GB.
I don't find any documentation about that in the CouchDB Doc.
I restarted CouchDB (/etc/init.d/couchdb restart) but nothing changes.
How can I reduce the size of shards? How can I get rid of this ghost-db?
My next step would be, if I cannot solve this issue, to uninstall
CouchDB 2.x and reinstall 1.x, because I dont need that feature of
cluster server anyway. I see only inconvenience for my use.
Thanks
frank