def METHOD_NAME(self, container: Dict) -> bool:
    collection = bpy.data.collections.get(container["objectName"])
    if not collection:
        return False
    collection_metadata = collection.get(AVALON_PROPERTY)
    for obj in collection_metadata['objects']:
        for child in self.get_all_children(obj):
            child.data.materials.clear()
    for material in collection_metadata['materials']:
        bpy.data.materials.METHOD_NAME(material)
    bpy.data.collections.METHOD_NAME(collection)
    return True