We've written a scripting tool in ArcGIS Pro 3.0.1 (Python API) that allows a user to select a Layer Name from a portal using a dropdown list. The tool reports back which web maps on the portal the layer is used in. The script works well, but we've noticed that once a layer has been removed from a web map and we run the tool again selecting the same layer name, that the map from which the layer was removed still shows up on the list of web maps the layer is used in. Its almost like the web maps JASON isn't being updated to reflect the changes that have been made to it. Is their a way to refresh or update portal information so we can see the most recent web map data (I.E. showing the layer has been removed) so the map will not show up on the tools output list again?... I really don't think its a problem with the code.