Implement deleting networks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user