How to determine what maps are using a layer in AGOL

610
4
04-27-2022 07:27 AM
MelissaDeveau
New Contributor

I'm hoping to remove some large layer files from my AGOL content (layers no longer relevant or used) and I want to know what web maps are using them. 
I realize I can look at a map and see what layers are being used, but I want to do the reverse and look at a layer and see what maps are using it. 
ESRI support has advised it's not possible at this time, but they mentioned posting on here for solutions, or to encourage interest if others think this functionality would be useful.

4 Replies
MikeVolz
New Contributor III

There are 3rd party tools that you can purchase to perform this type of task.  If you need to do this type of maintenance often it might be worth the investment.  GeoJobe is a popular vendor.

KoryKramer
Esri Community Moderator
JillianStanford
Occasional Contributor III

Hi Melissa,

I think you could do this pretty easily with a Python notebook.

This sample is for cloning content but it contains all of the pieces for getting a reference to a feature service then looping through each web map and checking each of it's layers to see if they match the feature service.

Hope that helps!

0 Kudos
Katie_Clark
MVP Regular Contributor

Check out this post, hopefully it will help 🙂

https://community.esri.com/t5/arcgis-online-questions/possible-to-find-out-where-feature-layers-are/...

Best,
Katie


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek