---
title: "Delete workspace agent port share"
method: DELETE
path: "/api/v2/workspaces/{workspace}/port-share"
tags: ["PortSharing"]
---

# Delete workspace agent port share

`DELETE /api/v2/workspaces/{workspace}/port-share`

## Path parameters

- `workspace` string, uuid, required

## Request body

- CodersdkDeleteWorkspaceAgentPortShareRequest
  - `agent_name` string
  - `port` integer

## Response `200`

OK

---

[API](https://skmtc.dev/coder/apis/coder-api.md) · [All operations](https://skmtc.dev/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/369ae60ab00e/schema)
