> ## 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.

# Blob Delete Share

> Revoke a share link with DELETE /v1/shares. The link stops working at once; the file itself is kept.

<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.

<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={null}
  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={null}
  {
    "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. |
