code: def purge_project():
      
      print('Current Directory: {}'.format(os.getcwd()))
      directories = os.listdir(os.getcwd())
      if CACHE_NAME in directories:
          response = get_input("Would you like to delete the cache and"
                               "everything in it? [y/n]: ", ('y', 'n'))
          if response == 'y':
              print("Listing local '__cythercache__':")
              cache_dir = os.path.join(os.getcwd(), "__cythercache__")
              to_delete = []
              contents = os.listdir(cache_dir)
              if contents:
                  for filename in contents:
                      print('\t' + filename)
                      filepath = os.path.join(cache_dir, filename)
                      to_delete.append(filepath)
              else:
                  print("\tNothing was found in the cache")
  
              check_response = get_input("Delete all these files? (^)"
                                         "[y/n]: ", ('y', 'n'))
              if check_response == 'y':
                  for filepath in to_delete:
                      os.remove(filepath)
                  os.rmdir(cache_dir)
              else:
                  print("Skipping the deletion... all files are fine!")
          else:
              print("Skipping deletion of the cache")
      else:
          print("Couldn't find a cache file ('{}') in this "
                "directory".format(CACHE_NAME))
docs: Purge a directory of anything cyther related