Skip to main content

remove-environment-variables

Remove environment variables with the Unkey API CLI
1 min read

Remove named variables from an environment without changing other variables.

Usage#

Flags#

--projectstringrequired#

Project identifier or slug.

--appstringrequired#

Application identifier or slug.

--environmentstringrequired#

Environment identifier or slug.

--variablesstring[]required#

Comma-separated variable names to remove.

Global Flags#

FlagTypeDescription
--root-keystringOverride root key ($UNKEY_ROOT_KEY)
--api-urlstringOverride API base URL (default: https://api.unkey.com)
--configstringPath to config file (default: ~/.unkey/config.toml)
--outputstringOutput format - use json for raw JSON
--bodystringSend this JSON string as the request body. You cannot combine it with request-building flags.

Examples#

See the Remove environment variables API reference.