Pimcore\Cache\Backend\Mongodb::remove PHP Method

remove() public method

Remove a cache record
public remove ( string $id ) : boolean
$id string Cache id
return boolean True if no problem
    public function remove($id)
    {
        try {
            $result = $this->_collection->remove(['_id' => $id]);
        } catch (\Exception $e) {
            return false;
        }
        return $result;
    }