#!/usr/bin/python3 def cleanup(name=None, path=None, version=None): ret = {'name': name, 'changes': {}, 'result': True, 'comment': 'No changes been made'} res = __salt__['software.cleanup'](name, path, version) if res is not None: ret['changes']["folders"] = res return ret