diff --git a/server/vcr-server/agent_webhooks/management/commands/delete_topic.py b/server/vcr-server/agent_webhooks/management/commands/delete_topic.py index 03dae1e46..86b849bd1 100644 --- a/server/vcr-server/agent_webhooks/management/commands/delete_topic.py +++ b/server/vcr-server/agent_webhooks/management/commands/delete_topic.py @@ -33,8 +33,8 @@ async def delete_topic(self, *args, **options): for credential in topic.credentials.all(): self.stdout.write(" ... " + credential.credential_id + " ...") try: - response = requests.post( - f"{settings.AGENT_ADMIN_URL}/credential/{credential.credential_id}/remove", + response = requests.delete( + f"{settings.AGENT_ADMIN_URL}/credential/{credential.credential_id}", headers=settings.ADMIN_REQUEST_HEADERS, ) response.raise_for_status()