def remove_from_products(self, products=None, all_products=False):
if all_products:<EOL><INDENT>if products:<EOL><INDENT>raise ArgumentError("<STR_LIT>")<EOL><DEDENT>plist = "<STR_LIT:all>"<EOL><DEDENT>else:<EOL><INDENT>if not products:<EOL><INDENT>raise ArgumentError("<STR_LIT>")<EOL><DEDENT>plist = {GroupTypes.productConfiguration.name: [product for product in products]}<EOL><DEDENT>return self.append(remove=plist)<EOL>
Remove user group from some product license configuration groups (PLCs), or all of them.
:param products: list of product names the user group should be removed from
:param all_products: a boolean meaning remove from all (don't specify products in this case)
:return: the Group, so you can do Group(...).remove_from_products(...).add_users(...)