How to remove local data but it do not remove on replicated Server


#1

Hi all,
I am developing a iOS application,
I use couchbaselite as database.
I have a problem, When the data synchronous from server more and more, the device will don’t enough space to save. the database is big.
I want to remove some old data on Local, but it do not affected to the Database on replicated database.

Any idea!
Thanks


#2

You can purge documents from the database which will permanently remove them. The documentation explains how to do this.

http://developer.couchbase.com/documentation/mobile/1.1.0/develop/guides/couchbase-lite/native-api/document/index.html#purging-a-document#purging-a-document

It has no effect on the replication of the remote database.

James


#3

Thank James
I have overlooked it.