How to delete the document in Couchbase Server and Couchbase lite

Use the _purge operation in the Sync Gateway REST API.

But if you do that, Sync Gateway forgets about the document completely, so it no longer knows to push it to clients. If you want the deletion to be propagated to clients, you should delete the document instead (a normal REST DELETE). The document will still be present but as a “tombstone” that has no content, but just marks the deletion.