> ## 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 enlace compartido con DELETE /v1/shares. El enlace deja de funcionar al instante; el archivo en sí se conserva.

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  La clave de API de tu cuenta. Puedes encontrarla en la [configuración de tu cuenta](https://squarecloud.app/es/account/security).
</ParamField>

Delete Share revoca un enlace compartido. A partir de ese momento el enlace responde `404`, y el archivo en sí se conserva. Requiere el scope `blob:write`.

<ParamField body="id" type="string" required>
  El id del enlace compartido, de [Create Share](/es/blob-reference/endpoint/shares-create) o [List Shares](/es/blob-reference/endpoint/shares-list).
</ParamField>

### Respuesta

<ResponseField name="status" type="string">
  "success" si tuvo éxito, "error" si no.
</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>

### Errores

| Código            | HTTP | Cuándo                                         |
| ----------------- | ---- | ---------------------------------------------- |
| `INVALID_SHARE`   | 400  | `id` falta o está mal formado.                 |
| `SHARE_NOT_FOUND` | 404  | El enlace no existe, expiró o ya fue revocado. |
