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

# Elimina un secret

> Elimina un secret. Le esecuzioni successive di app che lo referenziano falliscono per entry env mancante.

**`DELETE`** `https://api-datahub.octoparse.com/v1/secrets/{name}`

Autenticazione: API key obbligatoria (`Authorization: Bearer <API Key>`).

Elimina un secret salvato. Le app che fanno ancora riferimento a `env.<name>` falliscono nei run successivi finché non ripristini il secret o aggiorni l'app.

## Richiesta

### Parametri di percorso

<ParamField path="name" type="string" required>
  Nome secret.
</ParamField>

### Esempio di richiesta

```bash theme={null}
curl -X DELETE   -H "Authorization: Bearer $OCTOPARSE_API_KEY"   "https://api-datahub.octoparse.com/v1/secrets/EXAMPLE_API_KEY"
```

## Risposta

### 200 successo

```json theme={null}
{
  "data": {
    "name": "EXAMPLE_API_KEY",
    "deleted": true
  }
}
```

### Errori

| HTTP | `code`             | `category`  | Descrizione                    |
| ---- | ------------------ | ----------- | ------------------------------ |
| 401  | `unauthorized`     | `forbidden` | API key mancante o non valida. |
| 404  | `secret-not-found` | `not_found` | Il secret non esiste.          |

Le risposte di errore usano `{"error": {code, category, message, retryable}}`. Vedi <a href="/docs/it/datahub/api/reference/introduction#errors">Errori</a>.

## Librerie client

Gli SDK Python e JavaScript non wrappano ancora questo endpoint. Chiama REST direttamente.
