Good morning,I want to delete all the tags of an item by code like this:
item.update(item_properties={'tags': tags})
I pass an empty string, an empty list, None, [], does not do it.What element must be passed to achieve it?Regards
I don't know 😭 you had got me all excited 😂
Ah, that's interesting. I wonder why that is??
Hi @EarlMedina
This is great thanks, I just wanted to highlight the below as I was giving this a test.
While it removes tags from the Item page as per below...
...there is a lingering empty string in the tags list, so it doesn't fully clear the tags list.
All the best,
Glen
Use this to clear all tags:
item.update(item_properties={"tags":"", "clearEmptyFields": True})
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.