code: def _delete_app_confirmation_prompt(app_name: str) -> None:
      console = Console()
  
      # when the --yes / -y flags were not passed, do a final
      # confirmation that the user wants to delete the app.
      try:
          ask = [
              inquirer.Confirm(
                  "confirm",
                  message=f'Are you sure you want to delete app "{app_name}""?',
                  default=False,
              ),
          ]
          if (
              inquirer.prompt(
                  ask,
                  theme=GreenPassion(),
                  raise_keyboard_interrupt=True,
              )["confirm"]
              is False
          ):
              console.print("[b][red]Aborted![/b][/red]")
              raise InterruptedError
      except KeyboardInterrupt:
          console.print("[b][red]Cancelled by user![/b][/red]")
          raise InterruptedError
  
file_path: pytorch-lightning/src/lightning/app/cli/lightning_cli_delete.py
imports: import click
  import inquirer
  from inquirer.themes import GreenPassion
  from rich.console import Console
  from lightning.app.cli.cmd_apps import _AppManager
label_desc: Use image node_id 3 for calling a global function with example usage: _delete_app_confirmation_prompt(app_name) without return types