code: def delete_app(app_name: str, skip_user_confirm_prompt: bool) -> None:
      """Delete a Lightning app.
  
      Deleting an app also deletes all app websites, works, artifacts, and logs. This permanently removes any record of
      the app as well as all any of its associated resources and data. This does not affect any resources and data
      associated with other Lightning apps on your account.
  
      """
      console = Console()
  
      try:
          selected_app_instance_id = _find_selected_app_instance_id(
              app_name=app_name
          )
          if not skip_user_confirm_prompt:
              _delete_app_confirmation_prompt(app_name=app_name)
      except InterruptedError:
          return
  
      try:
          # Delete the app!
          app_manager = _AppManager()
          app_manager.delete(app_id=selected_app_instance_id)
      except Exception as ex:
          console.print(
              f'[b][red]An issue occurred while deleting app "{app_name}. If the issue persists, please '
              "reach out to us at [link=mailto:support@lightning.ai]support@lightning.ai[/link][/b][/red]."
          )
          raise click.ClickException(str(ex))
  
      console.print(
          f'[b][green]App "{app_name}" has been successfully deleted"![/green][/b]'
      )
      return
  
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 4 for calling a global function with example usage: delete_app(app_name, skip_user_confirm_prompt) without return types