Hi,
I am an administrator for my organisations AGOL and we are hoping to automate the deletion of content.
We have an excel spreadsheet that lists the organisations users names, the name of their layers, file type, view count etc. We want to use this to filter out specific user content (i.e. low view count/ those that have left the organisation etc) and then automatically delete certain layers.
We are hoping to use a python script to automate this deleting process. Has anyone done this previously?
Example workflow:
1. Connect to ArcGIS Online
2. For content type (identified in spreadsheet) and content name (identified in spreadsheet) delete
3. Loop to the next layer to delete.
As there are hundreds of these layers that will need to be deleted, any help on how to do this, where to start with the script would be greatly appreciated!