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

> Revoca un link di condivisione con DELETE /v1/shares. Il link smette subito di funzionare; il file viene mantenuto.

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  La chiave API del tuo account. Puoi trovarla nelle [impostazioni del tuo account](https://squarecloud.app/it/account/security).
</ParamField>

Delete Share revoca un link di condivisione. Da quel momento il link risponde `404`, mentre il file viene mantenuto. Richiede lo scope `blob:write`.

<ParamField body="id" type="string" required>
  L'id della condivisione, ottenuto da [Create Share](/it/blob-reference/endpoint/shares-create) o [List Shares](/it/blob-reference/endpoint/shares-list).
</ParamField>

### Risposta

<ResponseField name="status" type="string">
  "success" in caso di successo, "error" in caso contrario.
</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>

### Errori

| Codice            | HTTP | Quando                                                |
| ----------------- | ---- | ----------------------------------------------------- |
| `INVALID_SHARE`   | 400  | `id` manca o è malformato.                            |
| `SHARE_NOT_FOUND` | 404  | Il link non esiste, è scaduto o è già stato revocato. |
