public function delete_many( $wheres ) {

		$format = array_fill( 0, count( $wheres ), '%s' );
		$prev   = $this->wpdb->show_errors( false );
		$result = $this->wpdb->delete( $this->table->get_table_name( $this->wpdb ), $wheres, $format );
		$this->wpdb->show_errors( $prev );

		if ( $this->wpdb->last_error ) {
			throw $this->generate_exception_from_db_error();
		}

		return (bool) $result;
	}
public function delete_many( $wheres ) {

		$format = array_fill( 0, count( $wheres ), '%s' );
		$prev   = $this->wpdb->show_errors( false );
		$result = $this->wpdb->delete( $this->table->get_table_name( $this->wpdb ), $wheres, $format );
		$this->wpdb->show_errors( $prev );

		if ( $this->wpdb->last_error ) {
			throw $this->generate_exception_from_db_error();
		}

		return (bool) $result;
	}
public function delete_many ( $ wheres ) { $ format = array_fill ( 0 , count ( $ wheres ) , '%s' ) ; $ prev = $ this -> wpdb -> show_errors ( false ) ; $ result = $ this -> wpdb -> delete ( $ this -> table -> get_table_name ( $ this -> wpdb ) , $ wheres , $ format ) ; $ this -> wpdb -> show_errors ( $ prev ) ; if ( $ this -> wpdb -> last_error ) { throw $ this -> generate_exception_from_db_error ( ) ; } return ( bool ) $ result ; }
Delete many rows.

@since 1.0

@param $wheres array

@return bool

@throws Exception
Delete many rows .