---
title: "Revoke a client link"
method: DELETE
path: "/v1/search/share-links/{link_id}"
tags: ["gsc"]
---

# Revoke a client link

`DELETE /v1/search/share-links/{link_id}`

## Request

- Base URL: `https://frontshelf.io/api`
- URL: `https://frontshelf.io/api/v1/search/share-links/{link_id}`
- Auth: HTTP bearer

Revoke one client link: the next request with its address is the same 404 as an unknown link, at once and for good. It cannot be turned back on (make a new one with gsc_links_save), so it asks for confirmation: call it with dry_run: true, then with confirm: true, and revoke only what your human asked you to. A link already revoked, on a site this key cannot see, or never this workspace's is NOT_FOUND. Never billing-gated.

## Path parameters

- `link_id` string, required: The link's id (sshr_…), from gsc_links_list.

## Query parameters

- `dry_run` boolean: true: check the call and say what it would do, without doing it.
- `confirm` boolean: true: go ahead with a change that asks for confirmation.

## Response `200`

Revoke a client link

- object
  - `summary` string, required: The answer in one or two sentences, with the numbers it rests on.
  - `warnings` string[], required: What limits this answer (a cap, a read that was cut short). Empty when nothing does.
  - `next_actions` object[], required: What to call next, best first. Follow them.
    - `capability` string, required: What to call next: a capability.
    - `arguments` object, required: Its arguments, complete; pass them as they are.
    - `instruction` string, required: What to do, written to you.
  - `id` string, required: The link revoked.
  - `revoked` true, required

## Other responses

- `400`: VALIDATION_FAILED
- `401`: UNAUTHENTICATED
- `403`: ORGANIZATION_FROZEN, SCOPE_DENIED
- `404`: NOT_FOUND
- `409`: AGENT_STOPPED
- `428`: CONFIRMATION_REQUIRED
- `503`: PLATFORM_READ_ONLY, DEPENDENCY_UNAVAILABLE

---

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