---
title: "Revoke one owned link generation"
method: DELETE
path: "/personal/users/{userId}/share-links/{shareLinkId}"
tags: ["resource-sharing"]
---

# Revoke one owned link generation

`DELETE /personal/users/{userId}/share-links/{shareLinkId}`

## Request

- Base URL: `http://localhost:3000/api`
- URL: `http://localhost:3000/api/personal/users/{userId}/share-links/{shareLinkId}`
- Auth: HTTP bearer

## Response `204`

Link revoked or already inactive

## Other responses

- `401`: unauthorized (you need to have a valid token) and userId must match the subject in token
- `404`: Resource not found

## Changes

- **2026-10-25** `6aa109656c66`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/codeverdotdev/apis/codever-api/changes/personal/users/:userId/share-links/:shareLinkId/delete.md)

---

[API](https://skmtc.dev/codeverdotdev/apis/codever-api.md) - [All operations](https://skmtc.dev/codeverdotdev/apis/codever-api/llms.txt) - [OpenAPI document](https://skmtc.dev/codeverdotdev/apis/codever-api/revisions/d5a3297e4da7?raw)
