diff --git a/controlpanel/cli/management/commands/deleteapp.py b/controlpanel/cli/management/commands/deleteapp.py index 0471ea02b..96c93ad25 100644 --- a/controlpanel/cli/management/commands/deleteapp.py +++ b/controlpanel/cli/management/commands/deleteapp.py @@ -28,8 +28,7 @@ def handle(self, *args, **options): do_delete = options["yes"] if not options["yes"]: confirm = input(f"Are you sure you want to delete {app.name}? Y/n\n") - if confirm in ("Y", "yes"): - do_delete = True + do_delete = confirm.lower() in ("y", "yes") if do_delete: self.stdout.write(f"Deleting {app.name}")