How can I drop a database in PouchDB to get the space on the disk free again? Remove only sets a paramter _deleted and keeps the Data of the record anyway. But how can
You can destroy the database and create it again.
var _db = new PouchDB('foo'); var reset = function() { _db.destroy().then(function() { _db = new PouchDB('foo'); }); };
It sounds like you are looking for compaction. It will do exactly what you describe. :)