This should work alongside cas support in PR #1051 Idea for API: ```java MyEntity entity = template.removeById(MyEntity.class) .withCas(12345L) .one("abc123"); ``` It would be good if this support was also extended to `org.springframework.data.couchbase.repository.CouchbaseRepository` Right now we have a custom base repository exposing delete methods that return the deleted document. Having this in the base implementation would reduce the surface area of our custom base repository and I suspect be helpful to others too.