We want to clean out unwanted TAGS from our ArcGIS Online Organization.
Can I use the Python API or something else to do this?
You can search by your organization id, then loop though all the items and print out the tags. Below is an example....
import arcgisfrom arcgis.gis import GISgis = GIS()search_result = gis.content.search(query="orgid: Your org id here", max_items = 100)for item in search_result: print(item.tags)
Thank you for the easy to follow code snippet.
I am now trying to use the same code for Portal.
Should it work in portal and why doesn't it need credentials to get the tags?
Thank you again,
Retrieving data ...