Building a PWA with OPT with PouchDB as PersistenceStore for shredding. What is the best practice to purge/reclaim space for the PouchDB?
The reason I'm asking is that PouchDB does not have the ability to 'purge' deleted objects and there isn't a way to reclaim space for resources that have been stored in PouchDB that are no longer required in the cache.
I believe the only solution to reclaim space is to remove the database and create a new one. If that is the case what is a good practice for doing that? Delete the database after the sync has been completed? Offer user settings to purge the PouchDB persistence storage?