Can't Delete Item From ArcGisOnline

334
1
06-22-2020 03:45 AM

Hi i'm using item.delete there is no error but item is still there.

does anyone know how to accomplish that ?

from arcgis.gis import GIS

gisAgolCon = GIS('https://Url',usernasme,pw)
token = gisAgolCon._con.token

delItem=gisAgolCon.content.get('gchghjgkgkkg5658hlhjlkhjl')
delItem.delete(force=True,dry_run=True)

thanks

Tags (1)
0 Kudos
1 Reply

hi, 

well it is my mistake

it needs to run  without the "dry_run=True"

delItem.delete()
0 Kudos