Skip to content

Commit

Permalink
.delete for delete server
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Aug 28, 2023
1 parent 4e2105c commit b4af047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jhub_apps/launcher/hub_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def create_server(self, username, servername="foobarlar", params=None):
def delete_server(self, username, server_name):
url = f"/users/{username}/servers/{server_name}"
params = {"remove": True}
r = requests.post(API_URL + url, headers=self._headers(), json=params)
r = requests.delete(API_URL + url, headers=self._headers(), json=params)
r.raise_for_status()
return r.status_code

0 comments on commit b4af047

Please sign in to comment.