* @param vclock the vclock for the existing object
* @throws RiakException
*/
public void delete(String key, VClock vclock) throws RiakException
{
final DeleteObject delete = bucket.delete(key).withRetrier(retrier);
if (deleteMeta.hasR()) {
delete.r(deleteMeta.getR());
}
if (deleteMeta.hasPr()) {
delete.pr(deleteMeta.getPr());
}
if (deleteMeta.hasW()) {
delete.w(deleteMeta.getW());
}
if (deleteMeta.hasDw()) {
delete.dw(deleteMeta.getDw());
}
if (deleteMeta.hasPw()) {
delete.pw(deleteMeta.getPw());
}
if (null == vclock)
{
delete.fetchBeforeDelete(true);
}
else
{
delete.vclock(vclock);
}
delete.execute();
}