New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove attachement once synced with remote database? #3668
Comments
You could have a push only PouchDB, and listen for its change events (you get an event emitter from calling push or sync), then delete content locally once the relevant change event details that the attachment has been pushed. (edits: typing poorly for some reason) |
But when I delete the event locally won't that deletion propagate to the server with the next sync? |
I think what you want is |
@ronag I had the same problem with archives... I wanted to be able to delete a document locally while keeping it on the remote server (which is what you want to do with attachments). My suggestion would be to use a different document for your attachment and use this: http://stackoverflow.com/questions/23907966/couchdb-automatic-archiving Read carefully the comments of the answer. It is a really nice solution! Thanks to 'skiqh' |
Closing as a dupe - #802 |
Is this possible? Without actually causing the remote database to delete the attachment as well.
The text was updated successfully, but these errors were encountered: