Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Manually Deleting Cache #8

Open
nurseybushc opened this issue Jun 18, 2015 · 2 comments
Open

Manually Deleting Cache #8

nurseybushc opened this issue Jun 18, 2015 · 2 comments

Comments

@nurseybushc
Copy link

I ended up getting this to work with angular but now i am wondering how I would go about deleting the cache manually, for example with a button? I know the db is called 'offline-tiles' but I'm not sure how to call it. Thanks

@kentr
Copy link

kentr commented Feb 14, 2016

This worked for me. From the PouchDB docs:

layer._db.destroy().then(function (response) {
  // success
}).catch(function (err) {
  console.log(err);
});

@thijssmudde
Copy link

How do I find the cache size? Preferably for each different tile layer.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants