def deactivateSet(thisSet):
    # Loop through all current active sets
    for set in activeSets:
        # Check every active set, if it is the one to deactivate
        if set.name == thisSet.name and set.query == thisSet.query:
            setsToDeactivate.append(set)
        else:
            # if not put it on the save list
            setsToSave.append(set)
    # After the loop is finished, clear the list of active sets
    activeSets[:] = []
    # Put the saved sets in it
    activeSets.extend(setsToSave)
    setSmartSets(setsToSave)
# RoboFont-SetOrganizer - Snippet
# Remove all sets

from mojo.UI import getSmartSets, setSmartSets

smartSetList = getSmartSets()
smartSetList = setSmartSets('')