public function delete($query, array $data) {
        $stmt = $this->executeQuery($query, $data);
        
        return $stmt->rowCount();       
    }
public function delete($query, array $data) {
        $stmt = $this->executeQuery($query, $data);
        
        return $stmt->rowCount();       
    }
public function delete ( $ query , array $ data ) { $ stmt = $ this -> executeQuery ( $ query , $ data ) ; return $ stmt -> rowCount ( ) ; }
Delete a record in the storage

@param string $query
@param array $data
@return int the number of rows
Delete a record in the storage