diff --git a/cmd/argocd/commands/app.go b/cmd/argocd/commands/app.go index c4f146983de45..4d5ae35bda46b 100644 --- a/cmd/argocd/commands/app.go +++ b/cmd/argocd/commands/app.go @@ -1450,7 +1450,9 @@ func NewApplicationDeleteCommand(clientOpts *argocdclient.ClientOptions) *cobra. numOfApps := len(appNames) - promptUtil := utils.NewPrompt(isTerminal && !noPrompt) + // This is for backward compatibility, + // before we showed the prompts only when condition cascade && isTerminal && !noPrompt is true + promptUtil := utils.NewPrompt(cascade && isTerminal && !noPrompt) var ( confirmAll = false confirm bool = false