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

# Eliminar un secreto

> Elimina un secreto. Las ejecuciones posteriores de apps que lo referencian fallan por falta de entrada env.

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

Autenticación: se requiere API key (`Authorization: Bearer <API Key>`).

Elimina un secreto almacenado. Las apps que aún referencian `env.<name>` fallan en ejecuciones posteriores hasta restaurar el secreto o actualizar la app.

## Solicitud

### Parámetros de ruta

<ParamField path="name" type="string" required>
  Nombre del secreto.
</ParamField>

### Ejemplo de solicitud

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

## Respuesta

### 200 correcto

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

### Errores

| HTTP | `code`             | `category`  | Descripción                  |
| ---- | ------------------ | ----------- | ---------------------------- |
| 401  | `unauthorized`     | `forbidden` | API key ausente o no válida. |
| 404  | `secret-not-found` | `not_found` | Secret does not exist.       |

Las respuestas de error usan `{"error": {code, category, message, retryable}}`. Véase <a href="/docs/es/datahub/api/reference/introduction#errors">Errores</a>.

## Bibliotecas cliente

Los SDK de Python y JavaScript aún no encapsulan este endpoint. Llame a REST directamente.
