> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke a share link

> Revoke a Blob Storage share link with DELETE /v1/shares using its share id. The link answers 404 from then on, and the file itself is kept in storage.

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  The API key for your account. You can find this in your [account settings](https://squarecloud.app/en/account/security).
</ParamField>

Delete Share revokes a share link. The link answers `404` from then on, and the file itself is kept. Requires the `blob:write` scope.

## Parameters

<ParamField body="id" type="string" required>
  The share id, from [Create Share](/en/blob-reference/endpoint/shares-create) or [List Shares](/en/blob-reference/endpoint/shares-list).
</ParamField>

## Response

<ResponseField name="status" type="string">
  "success" if successful, "error" if not.
</ResponseField>

<RequestExample>
  ```bash cURL theme={"system"}
  curl --request DELETE \
    --url 'https://blob.squarecloud.app/v1/shares' \
    --header 'Authorization: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{ "id": "q8Zr2LwX7nT0vKc4Hs1YbA" }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={"system"}
  {
    "status": "success"
  }
  ```
</ResponseExample>

## Errors

| Code | HTTP | When |
| - | - | - |
| `INVALID_SHARE` | 400 | `id` is missing or malformed. |
| `SHARE_NOT_FOUND` | 404 | The link doesn't exist, expired or was already revoked. |

## Related

* Blob SDK: [`blob.shares.revoke()`](/en/sdks/blob/sharing)
