code: def delete_runtimes(name: str, config: Optional[str] = None) -> None:
      # Delete the related ssh config
      storm.delete(name, config)
  
      # Delete configured remote kernel if present
      try:
          import remote_ikernel  # noqa: F401
  
          kernel_name = "rik_ssh_" + name.replace("-", "_") + "_py36"
  
          os.system("remote_ikernel manage --delete " + kernel_name)
  
          # The Identity file won't be removed. Maybe it is useful to provide an additional flag to enforce the removal
          # can be retrieved from storm via single_ssh_entry['options']['identityfile']
      except Exception:
          pass
  
      print("Runtime successfully deleted.")
  
file_path: lazycluster/src/lazycluster/scripts/cli_handler.py
imports: import logging
  import os
  import sys
  from typing import List, Optional
  import click
  import storm.__main__
  from click_spinner import spinner
  from lazycluster import NoRuntimesDetectedError, RuntimeManager
label_desc: Use image node_id 3 for calling a global function with example usage: delete_runtimes(name, config) without return types