public static function delete($sqlstatement, array $data = [])
    {
        static::verifyConnection();

        if (!preg_match(
            "/^delete\sfrom\s[\w\d_`]+\swhere\s.+;?$/i",
            $sqlstatement
        )) {
            throw new DatabaseException(
                'Syntax Error on the Request',
                E_USER_ERROR
            );
        }

        return static::executePrepareQuery($sqlstatement, $data);
    }
public static function delete($sqlstatement, array $data = [])
    {
        static::verifyConnection();

        if (!preg_match(
            "/^delete\sfrom\s[\w\d_`]+\swhere\s.+;?$/i",
            $sqlstatement
        )) {
            throw new DatabaseException(
                'Syntax Error on the Request',
                E_USER_ERROR
            );
        }

        return static::executePrepareQuery($sqlstatement, $data);
    }
public static function delete ( $ sqlstatement , array $ data = [ ] ) { static :: verifyConnection ( ) ; if ( ! preg_match ( "/^delete\sfrom\s[\w\d_`]+\swhere\s.+;?$/i" , $ sqlstatement ) ) { throw new DatabaseException ( 'Syntax Error on the Request' , E_USER_ERROR ) ; } return static :: executePrepareQuery ( $ sqlstatement , $ data ) ; }
Execute a delete request

@param  $sqlstatement
@param  array        $data
@return bool
Execute a delete request