Again about _delete and deletion


I’am using CBL v1.4(Java) and SG v2.0.0 and Server 5.0.1.
I am trying to save document with property “_deleted” set to true. On device the document is updated with new rev and all properties I need including _deleted.

private void markRowDeleted(QueryRow row) throws CouchbaseLiteException {
Map<String, Object> p = row.getDocumentProperties();
p.put("_deleted", true);

On SG this document exists only with “_rev”, “_id” and “_deleted” properties without those I need.
So how can I “delete” doc and keep some properties I need?

Hm. Perhaps a Sync Gateway bug? @adamf?