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

> Widerrufe mit DELETE /v1/shares einen Freigabelink. Der Link funktioniert sofort nicht mehr; die Datei selbst bleibt erhalten.

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  Der API-Schlüssel für Ihr Konto. Sie finden ihn in Ihren [Kontoeinstellungen](https://squarecloud.app/de/account/security).
</ParamField>

Delete Share widerruft einen Freigabelink. Der Link antwortet ab dann mit `404`, und die Datei selbst bleibt erhalten. Erfordert den Scope `blob:write`.

<ParamField body="id" type="string" required>
  Die Freigabe-id, aus [Create Share](/de/blob-reference/endpoint/shares-create) oder [List Shares](/de/blob-reference/endpoint/shares-list).
</ParamField>

### Antwort

<ResponseField name="status" type="string">
  "success" bei Erfolg, "error" bei Misserfolg.
</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>

### Fehler

| Code              | HTTP | Wann                                                                    |
| ----------------- | ---- | ----------------------------------------------------------------------- |
| `INVALID_SHARE`   | 400  | `id` fehlt oder ist fehlerhaft.                                         |
| `SHARE_NOT_FOUND` | 404  | Der Link existiert nicht, ist abgelaufen oder wurde bereits widerrufen. |
