diff --git a/gotrue/_async/api.py b/gotrue/_async/api.py index 91225f53..e99dcb92 100644 --- a/gotrue/_async/api.py +++ b/gotrue/_async/api.py @@ -553,7 +553,7 @@ async def delete_user(self, *, uid: str, jwt: str) -> User: If an error occurs """ headers = self._create_request_headers(jwt=jwt) - url = f"{self.url}/admin/users/${uid}" + url = f"{self.url}/admin/users/{uid}" response = await self.http_client.delete(url, headers=headers) return User.parse_response(response) diff --git a/gotrue/_sync/api.py b/gotrue/_sync/api.py index 6af8ce41..c5f930b4 100644 --- a/gotrue/_sync/api.py +++ b/gotrue/_sync/api.py @@ -553,7 +553,7 @@ def delete_user(self, *, uid: str, jwt: str) -> User: If an error occurs """ headers = self._create_request_headers(jwt=jwt) - url = f"{self.url}/admin/users/${uid}" + url = f"{self.url}/admin/users/{uid}" response = self.http_client.delete(url, headers=headers) return User.parse_response(response)