public function deleteBean($module, $id, $disableSecurity = false)
    {
        $bean = $this->getBean($module, $id, array('disable_row_level_security' => $disableSecurity));
        if ($bean === false) {
            throw new \InvalidArgumentException("Can't delete that record.");
        }
        $bean->mark_deleted($id);
    }