Implement deleting networks

This commit is contained in:
2022-08-02 09:04:23 +01:00
parent 62ef524ac7
commit ad153cdefa
7 changed files with 86 additions and 33 deletions

View File

@@ -132,3 +132,10 @@ def create_network(data):
payload = data
ran = threshold_request(url, payload, method="PUT")
return ran
def del_network(net):
url = f"irc/network/{net}"
payload = {}
deleted = threshold_request(url, payload, method="DELETE")
return deleted