@@ -345,8 +345,8 @@ The batching is configurable by ``write_options``\ :
345345 """
346346 Close client
347347 """
348- _write_client.__del__ ()
349- _client.__del__ ()
348+ _write_client.close ()
349+ _client.close ()
350350
351351.. marker-batching-end
352352
@@ -436,7 +436,7 @@ Data are writes in an asynchronous HTTP request.
436436 async_result = write_api.write(bucket = " my-bucket" , record = [_point1, _point2])
437437 async_result.get()
438438
439- client.__del__ ()
439+ client.close ()
440440
441441 Synchronous client
442442""""""""""""""""""
@@ -456,7 +456,7 @@ Data are writes in a synchronous HTTP request.
456456
457457 write_api.write(bucket = " my-bucket" , record = [_point1, _point2])
458458
459- client.__del__ ()
459+ client.close ()
460460
461461 Queries
462462^^^^^^^
@@ -537,7 +537,7 @@ The API also support streaming ``FluxRecord`` via `query_stream <https://github.
537537 """
538538 Close client
539539 """
540- client.__del__ ()
540+ client.close ()
541541
542542 Pandas DataFrame
543543""""""""""""""""
@@ -580,7 +580,7 @@ The ``client`` is able to retrieve data in `Pandas DataFrame <https://pandas.pyd
580580 """
581581 Close client
582582 """
583- client.__del__ ()
583+ client.close ()
584584
585585 Output:
586586
@@ -677,7 +677,7 @@ If you would like to import gigabytes of data then use our multiprocessing examp
677677 Write data into InfluxDB
678678 """
679679 write_api.write(bucket = " my-bucket" , record = data)
680- write_api.__del__ ()
680+ write_api.close ()
681681
682682 """
683683 Querying max value of CBOE Volatility Index
@@ -701,7 +701,7 @@ If you would like to import gigabytes of data then use our multiprocessing examp
701701 """
702702 Close client
703703 """
704- client.__del__ ()
704+ client.close ()
705705
706706.. marker-writes-end
707707
@@ -734,8 +734,8 @@ Efficiency write data from IOT sensor
734734 :param write_api: WriteApi
735735 :return: nothing
736736 """
737- write_api.__del__ ()
738- db_client.__del__ ()
737+ write_api.close ()
738+ db_client.close ()
739739
740740
741741 def sensor_temperature ():
@@ -930,7 +930,7 @@ The `delete_api.py <influxdb_client/client/delete_api.py>`_ supports deletes `po
930930 """
931931 Close client
932932 """
933- client.__del__ ()
933+ client.close ()
934934
935935.. marker-delete-end
936936
@@ -1031,7 +1031,7 @@ that is replacement for python ``datetime.datetime`` object and also you should
10311031 """
10321032 Close client
10331033 """
1034- client.__del__ ()
1034+ client.close ()
10351035
10361036
10371037 Local tests
0 commit comments