I was trying to check SDK creating an asset hierarchy along with children (16). I created it in a improper structure and wanted to delete all of them and redo it from scratch.
When i try deleting it, i am getting an error.
client.assets.delete(i.id)
CogniteNotFoundError: Not found: [{'id': 1035393670500031}]The API Failed to process some items.
But when i see the list for the parent id, I am to list all of the ids completely
assets_subtree = client.assets.list(asset_subtree_ids=[3043982824375333])
for i in assets_subtree:
if i.name != 'LPM_YT_MODEL':
print(i.id,i.name,i.description)
Best answer by Jason Dressel
View original