Drone CTL List All Secrets

Is there a way via the drone command line tool to list all secrets by name/image. Or a simple command to rm all secrets?

you can list all repository secrets using:

drone secret ls foo/bar

you can filter by image using the cli flags

drone secret ls --image=plugins/docker foo/bar

you can customize the output by providing a custom Go template:

drone secret ls --format="{{ .Name }}" drone/drone

you can use the above code with xargs to delete all secrets

drone secret ls --format="{{ .Name }}" drone/drone | xargs -I{} drone secret rm foo/bar {}