def deleteAllSets(excludeList=[]):
    '\n\tDelete unused object sets\n\t@param excludeList: A list of sets to exclude from the list of unused sets.\n\t@type excludeList: list\n\t'
    setList = mc.ls(sets=True)
    if excludeList:
        excludeSetList = mc.ls(excludeList, sets=True)
        setList = list((set(setList) - set(excludeSetList)))
    for deleteSet in setList:
        try:
            mc.delete(deleteSet)
        except:
            pass
    return setList
Delete unused object sets
@param excludeList: A list of sets to exclude from the list of unused sets.
@type excludeList: list
def deleteAllSets(excludeList=[]):
    '\n\tDelete unused object sets\n\t@param excludeList: A list of sets to exclude from the list of unused sets.\n\t@type excludeList: list\n\t'
    setList = mc.ls(sets=True)
    if excludeList:
        excludeSetList = mc.ls(excludeList, sets=True)
        setList = list((set(setList) - set(excludeSetList)))
    for deleteSet in setList:
        try:
            mc.delete(deleteSet)
        except:
            pass
    return setList