Skip to content

1ctl secret unset

Remove a specific key from a deployment’s secret configuration.

1ctl secret unset
Flag Type Required Default Description
--app string No — App name to resolve (alternative to –deployment-id)
--config string No — Config name or path
--deployment-id, -d string No — Deployment ID
--key, -k string Yes — Key to remove
--help, -h boolean No — Show help
Terminal window
# Remove a secret key by deployment ID
1ctl secret unset --deployment-id dep_abc123 --key DATABASE_PASSWORD
# Remove a secret key by app name
1ctl secret unset --app my-app --key API_KEY