public void delete ( final K key , final long maxTime , final TimeUnit timeUnit ) { collectionWithWriteTimeout ( maxTime , timeUnit ) . deleteOne ( byId ( key ) ) ; }
Deletes the document identified by key .