Sync Gateway needs the ability to delete the body of an existing document as part of a subdoc operation that also updates an xattr (using the DeleteDoc subdoc op). This was supported in V1 when an empty path was specified for RemoveEx.
memd.SubDocOpDeleteDoc exists in the gocbcore and is handled by MutateIn there, but I don't believe there's a way to set it on the gocb side.
|For Gerrit Dashboard: GOCBC-1054|
|145722,3||GOCBC-1054: Allow blank paths to be used with subdoc remove||master||gocb||Status: MERGED||+2||+1|