I want to have a list of the services own by a specific owner and want to delete those Is there any way I can achieve that through python.
I was successfully able to access the services but is there any way to check their running instances , whether they are getting utilized or not, if not can we delete them?
Solved! Go to Solution.
I just logged it: #BUG-000119786 Using the ArcGIS API for Python to delete an item in Portal for ArcGIS returns an error. It appears to work fine with ArcGIS API for Python 1.5.1 but not in 1.5.2. My guess is that is has something to do with the new user types introduced in AGOL and being introduced in ArcGIS Enterprise 10.7. I am asking Esri Support to test 1.5.2 against 10.7 pre-release to see if that combination works.
Hi Simo Xu, Now it worked for me, it's just that I am giving an extra / after admin now its working fine for me.
Hi Vaibhav, Glad to know it works. If you agree that this is the solution, can you please mark it as the correct answer so it can help people with the same questions.