def removeRelease(self, resourceName, releaseName):

    # Delete release directory (and all of its contents)
    shutil.rmtree(self.resourcesPath + resourceName % "/" + releaseName)
    
    # Remove release from settings
    self.userSettings["resources"][resourceName]["releases"].remove(releaseName)

    # If this was the last release for an organism, remove its entry for settings
    if len(self.userSettings["resources"][resourceName]["releases"]) == 0:
      self.userSettings["resources"].remove(resourceName)

    # Return success (any possible failures here?)
    return True

  # -------------------------------------------
  # Resource target file methods
  # -------------------------------------------

  # Return the name of a resource's "current" release
dataset/ETHPy150Open gkno/gkno_launcher/src/gkno/adminUtils.py/adminUtils.removeRelease/operator `+` -> `%`