code: def remove_software_cache(sw_dir=None):
      
      sw_dir = get_sw_dir(sw_dir)
      if os.path.exists(sw_dir):
          shutil.rmtree(sw_dir)
docs: Removes the software cache directory at *sw_dir* which is evaluated with :py:func:`get_sw_dir`.