Skip to content

Commit 72f66d4

Browse files
committed
Add drop_user method for InfluxDBClient.
1 parent 8aa05ea commit 72f66d4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

influxdb/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,16 @@ def create_user(self, username, password):
455455
text = "CREATE USER {} WITH PASSWORD '{}'".format(username, password)
456456
self.query(text)
457457

458+
def drop_user(self, username):
459+
"""
460+
Drop an user
461+
462+
:param username: the username to drop
463+
:type username: string
464+
"""
465+
text = "DROP USER {}".format(username)
466+
self.query(text)
467+
458468
def delete_series(self, name, database=None):
459469
database = database or self._database
460470
self.query('DROP SERIES \"%s\"' % name, database=database)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy