Deleting AGOL hosted feature service objects and related attachments

2914
2
Jump to solution
04-04-2016 04:54 AM
New Contributor II


Hello!

I was using python ArcREST script (modified GitHUB example​) to delete certain objects from feature service in a following way:

fst = featureservicetools.featureservicetools(securityinfo)

...

fst.DeleteFeaturesFromFeatureLayer(url=fs_url, sql=sql,chunksize=2000)

The deletion was successful and a good bunch of features were indeed deleted, this could be verified by looking on the webmap.

However, after some days I checked our organizational account and noticed that the use of credits was still the same although the quite a few deleted features had a good load of picture attachments with them - I assume they were deteted too??? If not, then why I see our organization still using the same amount of credits per day? After all that was the main reason to delete those older fieldwork objects (with picture atatchments), to free some credits and space...

Raivo Alla

Estonian Land Board

Reply
0 Kudos
1 Solution

Accepted Solutions
Esri Esteemed Contributor

Hi Raivo,

Attachments are considered data storage, so you will only be charged 1.2 credits per 1 GB per month.  You may not notice a change in credit consumption unless you are deleting a significant amount of attachments (i.e. 1 GBs worth).

View solution in original post

2 Replies
Esri Esteemed Contributor

Hi Raivo,

Attachments are considered data storage, so you will only be charged 1.2 credits per 1 GB per month.  You may not notice a change in credit consumption unless you are deleting a significant amount of attachments (i.e. 1 GBs worth).

View solution in original post

New Contributor II

Thanks, that may be the reason indeed!

Raivo

Reply
0 Kudos