docs: def nukedir(target_dir, rmdir=False):
      """Delete all the files inside target_dir.
  
      Usage:
          nukedir("c:/ladybug/libs", True)
      """
      d = os.path.normpath(target_dir)
  
      if not os.path.isdir(d):
          return
  
      files = os.listdir(d)
  
      for f in files:
          if f == '.' or f == '..':
              continue
          path = os.path.join(d, f)
  
          if os.path.isdir(path):
              nukedir(path)
          else:
              try:
                  os.remove(path)
              except Exception:
                  print("Failed to remove %s" % path)
  
      if rmdir:
          try:
              os.rmdir(d)
          except Exception:
              print("Failed to remove %s" % d)