def forget(package_id):
 cmd = 'pkgutil --forget {0}'.format(package_id)
 salt.utils.mac_utils.execute_return_success(cmd)
 return (not is_installed(package_id))

def forget ( package_id ) : cmd = 'pkgutil --forget {0}' . format ( package_id ) salt . utils . mac_utils . execute_return_success ( cmd ) return ( not is_installed ( package_id ) )
see module docstring .