How can i purge all docment in the bucket at one time?

one week ago, i have backuped a database file from the android device. today ,i want to push the database data to the new ip server,the result is only some docments are pushed by sync gateway. i create a new bucket or reinstall the couchbase server,the question is the same!

I am a bit confused. The description of the post does not seem to match the title of the post so excuse me if I have misunderstood what you are trying to do …

Are you are pushing /replication the data from the Android app that contains the database ? If so, what version of CBL are you using? If not, how are you pushing the data ? (for instance, is it via the SGW API ?)

Assuming you tried this multiple times, is there anything specific (for instance size, attachments?) about the documents that fail to sync. Is it always the same set of docs that fail ?

Please turn on logging on the sync gateway and see if there are any errors reported