jadolg / outline-vpn-api

A Python API wrapper for Outline VPN https://getoutline.org/
MIT License
114 stars 30 forks source link

Delete #7

Closed zeex-pro closed 1 year ago

zeex-pro commented 1 year ago

How can I delete for example users with ID 2 or name "user1" ?

Thank you

jadolg commented 1 year ago

There's a delete method you can use with the ID

client = OutlineVPN(api_url="https://127.0.0.1:51083/xlUG4F5BBft4rSrIvDSWuw")
client.delete_key(key_id)