public function delete($mKey, $sGrouping)
    {
        $oDb = Factory::service('Database');
        $oDb->trans_begin();

        if (is_array($mKey)) {

            foreach ($mKey as $sKey) {
                $this->doDelete($sKey, $sGrouping);
            }

        } else {

            $this->doDelete($mKey, $sGrouping);
        }

        if ($oDb->trans_status() === false) {

            $oDb->trans_rollback();

            return false;

        } else {

            $oDb->trans_commit();

            return true;
        }
    }