Esempio n. 1
0
def delete_all_relationship(cmd,
                            name_or_hostname,
                            twin_id=None,
                            resource_group_name=None):
    twin_provider = TwinProvider(cmd=cmd,
                                 name=name_or_hostname,
                                 rg=resource_group_name)
    if twin_id:
        return twin_provider.delete_all_relationship(twin_id=twin_id)
    return twin_provider.delete_all(only_relationships=True)
Esempio n. 2
0
def delete_all_twin(cmd, name_or_hostname, resource_group_name=None):
    twin_provider = TwinProvider(cmd=cmd,
                                 name=name_or_hostname,
                                 rg=resource_group_name)
    return twin_provider.delete_all()