flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

Allow unsetting all secrets at once

Open nhedger opened this issue 1 year ago • 0 comments

Hey :wave:

This is a feature request.


I'd like to be able to unset all the secrets of an application at once.

# No secrets names unsets all secrets
flyctl secrets unset

# Alternatively, using a --all flag
flyctl secrets unset --all

Either implementation could optionally prompt the user for confirmation in interactive sessions.

I'd be willing to contribute the feature, but just wanted to check if that's something you'd be open to.

Workaround

Currently, I'm using the following workaround:

flyctl secrets unset $(flyctl secrets list --json | jq -r '[.[].Name] | join(" ")')

nhedger avatar Sep 30 '24 14:09 nhedger