diff --git a/internal/cli/apps.go b/internal/cli/apps.go index a5abb3fe3..6ebecfa12 100644 --- a/internal/cli/apps.go +++ b/internal/cli/apps.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "slices" "strings" "github.com/auth0/go-auth0/management" @@ -328,8 +329,8 @@ func deleteAppCmd(cli *cli) *cobra.Command { } if !cli.force && canPrompt(cmd) { - if tenant, _ := cli.Config.GetTenant(cli.tenant); tenant.ClientID == inputs.ID { - cli.renderer.Warnf("Warning: You're about to delete the client used to authenticate the CLI. If deleted, the CLI will cease to operate once the access token has expired.", inputs.ID) + if tenant, _ := cli.Config.GetTenant(cli.tenant); slices.Contains(ids, tenant.ClientID) { + cli.renderer.Warnf("Warning: You're about to delete the client used to authenticate the CLI. If deleted, the CLI will cease to operate once the access token has expired.", ids) } if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil