I am using riak php client and have datatype map. I want to delete entire map by key which is itemid. here is my code
$location = new Location($itemID, $this->itemBucket);
$map = (new \Command\Builder\FetchMap($this->riak))
->atLocation($location)
->build()
->execute()->getMap();
(new \Command\Builder\UpdateMap($this->riak))
->removeMap($itemID)
->atLocation($location)
->withContext($map->getContext())
->build()
->execute();
but this is not working.