---
title: "Close the client connection."
method: DELETE
path: "/api/hubs/{hub}/connections/{connectionId}"
tags: ["webpubsub"]
---

# Close the client connection.

`DELETE /api/hubs/{hub}/connections/{connectionId}`

Close the client connection.

## Path parameters

- `hub` string, required
- `connectionId` string, required

## Query parameters

- `api-version` string, required
- `reason` string

## Response `204`

There is no content to send for this request, but the headers may be useful.

## Other responses

- `default` — The error response.

---

[API](https://skmtc.net/azure/apis/webpubsub-webpubsub.md) · [All operations](https://skmtc.net/azure/apis/webpubsub-webpubsub/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/webpubsub-webpubsub/versions/3c12a9fc6305/schema)
