public function delete( $row_key ) {

		if ( empty( $row_key ) ) {
			return false;
		}

		$row_key = $this->escape_value( $this->table->get_primary_key(), $row_key );

		$prev   = $this->wpdb->show_errors( false );
		$result = $this->wpdb->delete( $this->table->get_table_name( $this->wpdb ), array(
			$this->table->get_primary_key() => $row_key
		), '%s' );
		$this->wpdb->show_errors( $prev );

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

		return (bool) $result;
	}
public function delete( $row_key ) {

		if ( empty( $row_key ) ) {
			return false;
		}

		$row_key = $this->escape_value( $this->table->get_primary_key(), $row_key );

		$prev   = $this->wpdb->show_errors( false );
		$result = $this->wpdb->delete( $this->table->get_table_name( $this->wpdb ), array(
			$this->table->get_primary_key() => $row_key
		), '%s' );
		$this->wpdb->show_errors( $prev );

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

		return (bool) $result;
	}
public function delete ( $ row_key ) { if ( empty ( $ row_key ) ) { return false ; } $ row_key = $ this -> escape_value ( $ this -> table -> get_primary_key ( ) , $ row_key ) ; $ prev = $ this -> wpdb -> show_errors ( false ) ; $ result = $ this -> wpdb -> delete ( $ this -> table -> get_table_name ( $ this -> wpdb ) , array ( $ this -> table -> get_primary_key ( ) => $ row_key ) , '%s' ) ; $ this -> wpdb -> show_errors ( $ prev ) ; if ( $ this -> wpdb -> last_error ) { throw $ this -> generate_exception_from_db_error ( ) ; } return ( bool ) $ result ; }
Delete a row identified by the primary key

@since 1.0

@param string $row_key

@return  bool

@throws Exception
Delete a row identified by the primary key