Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Timeout when deleting a delivery profile location group

Timeout when deleting a delivery profile location group

stickfigure
Shopify Partner
37 2 5

I have about 500 delivery profiles that I can't update. Attempting to delete the location group gives me:

[{"message":"Timeout","extensions":{"code":"TIMEOUT"}}]

Granted these location groups are pretty big, but there doesn't seem to be any way of deleting them piecemeal. So I appear to be stuck with un-deletable profiles.

My mutation is simple:

 

 

{
  "query": "mutation ($id: ID!, $profile: DeliveryProfileInput!) {\n  deliveryProfileUpdate(id: $id, profile: $profile) {\n    profile {\n      id\n    }\n    userErrors {\n      field\n      message\n    }\n  }\n}\n",
  "variables": {
    "id": "gid://shopify/DeliveryProfile/78141128861",
    "profile": {
      "locationGroupsToDelete": [
        "gid://shopify/DeliveryLocationGroup/79394046109"
      ]
    }
  }
}

 

 

 

How can I delete these and move forward?

 

Replies 3 (3)

Luke_K
Shopify Staff
402 66 102

Hey @stickfigure 

Would you mind sending me through the request_id from the timeout if you had it, I can take a look into this - thanks!

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
stickfigure
Shopify Partner
37 2 5

I found the ZonesToDelete collection on DeliveryProfileInput which allowed me to delete everything piecemeal. My queues have been cleaned out and I don't have an easy test case anymore. Unfortunately I was not logging the request ids.

So I guess you can call this "closed".

csam
Shopify Staff (Retired)
267 40 51

Hi @stickfigure 

Thanks for letting us know, and I'm glad that you were able to get everything cleared out. Just to follow up - how large were your location groups? I'd like to do some testing on our end to see if I can re-produce the issue you experienced

To learn more visit the Shopify Help Center or the Community Blog.