public function delete($SQL, $parameters = null) {
        $queryResult = $this->executeSQL($SQL, $parameters);
        return $queryResult->rowCount();
    }
public function delete($SQL, $parameters = null) {
        $queryResult = $this->executeSQL($SQL, $parameters);
        return $queryResult->rowCount();
    }
public function delete ( $ SQL , $ parameters = null ) { $ queryResult = $ this -> executeSQL ( $ SQL , $ parameters ) ; return $ queryResult -> rowCount ( ) ; }
Do a delete query to Database and return the number of deleted rows.

@param string $SQL
@return int number of deleted rows.
@throws ModelException
Do a delete query to Database and return the number of deleted rows .