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

# Remover Variáveis de Ambiente

> Remove as variáveis indicadas no corpo da requisição

Remove as chaves listadas em `keys`. O array deve conter ao menos uma chave. A remoção não reinicia a aplicação.

```bash cURL theme={null}
curl -X DELETE 'https://api.sondercloud.app/v1/apps/{id}/envs' \
  -H 'Authorization: Bearer seu_token' \
  -H 'Content-Type: application/json' \
  --data '{"keys":["API_KEY"]}'
```

```json Success theme={null}
{
  "success": true,
  "response": {
    "NODE_ENV": "production"
  },
  "message": "Environment variables saved. Restart the app to apply changes."
}
```

> [!NOTE]
>
> Depois da remoção, reinicie o app para que o container deixe de receber as variáveis removidas. O endpoint responde `400 Bad Request` se `keys` não for um array não vazio ou contiver um nome inválido.

Falhas retornam o status HTTP correspondente e um corpo com `success: false` e `message`.


## API Specification

The full API specification for this endpoint is available in the [documentation index](https://docs.sondercloud.app/llms.txt).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.