---
title: "Delete environment variable"
method: DELETE
path: "/api/v1/apps/services/{service_id}/env/{key}"
tags: ["Raff Apps"]
---

# Delete environment variable

`DELETE /api/v1/apps/services/{service_id}/env/{key}`

## Path parameters

- `service_id` string, required
- `key` string, required

## Response `200`

Variable deleted

- object
  - `success` boolean
  - `env_vars` AppEnvVar[]
    - `key` string
    - `value` string — Empty for secrets unless fetched via the reveal endpoint
    - `is_secret` boolean
    - `is_system` boolean — Managed by the platform (e.g. bindings) — read-only
  - `deployment_id` string, uuid

## Other responses

- `401` — Authentication required
- `404` — Resource not found

## Changes

- **2026-08-20** `efd3c11c5c92` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/rafftechnologies/apis/raff-api/changes/api/v1/apps/services/:service_id/env/:key/delete.md)

---

[API](https://skmtc.dev/rafftechnologies/apis/raff-api.md) · [All operations](https://skmtc.dev/rafftechnologies/apis/raff-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rafftechnologies/raff-api/revisions/2f4df56be77c/schema)
