---
title: "Changes to Close the client connection."
method: DELETE
path: "/api/hubs/{hub}/connections/{connectionId}"
---

# Changes to Close the client connection.

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

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 4 of 10 revisions.

- **2026-07-13** (2021-05-01-preview) `3c12a9fc6305` — 1 info
- **2026-07-13** (2021-05-01-preview) `db70e5df6e15` — 2 breaking, 1 info
- **2021-07-20** (2021-05-01-preview) `bfc2919307de` — 1 info
- **2021-04-21** (2021-05-01-preview) `5c057b21a138` — 1 breaking, 1 warning, 3 info

## Changes

- **2026-07-13** (2021-05-01-preview) `3c12a9fc6305` — 1 info
  - api operation id `WebPubSub_CloseConnection` removed and replaced with `CloseConnection`
- **2026-07-13** (2021-05-01-preview) `db70e5df6e15` — 2 breaking, 1 info
  - the `query` request parameter `api-version` became required
  - removed the success response with the status `200`
  - added the success response with the status `204`
- **2021-07-20** (2021-05-01-preview) `bfc2919307de` — 1 info
  - api operation id `WebPubSub_CloseClientConnection` removed and replaced with `WebPubSub_CloseConnection`
- **2021-04-21** (2021-05-01-preview) `5c057b21a138` — 1 breaking, 1 warning, 3 info
  - removed the success response with the status `204`
  - the optional response header `x-ms-error-code` removed for the status `default`
  - api operation id `CloseConnection` removed and replaced with `WebPubSub_CloseClientConnection`
  - the `query` request parameter `api-version` became optional
  - added the success response with the status `200`

---

[Operation](https://skmtc.dev/azure/apis/webpubsub/docs/api/hubs/:hub/connections/:connectionId/delete.md) · [API](https://skmtc.dev/azure/apis/webpubsub.md) · [Page](https://skmtc.dev/azure/apis/webpubsub/changes/api/hubs/:hub/connections/:connectionId/delete)
