Timeout when deleting a delivery profile location group

stickfigure
Shopify Partner
37 2 4

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?

 

0 Likes
L_J_K
Shopify Staff
Shopify Staff
152 15 24

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!

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

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".

0 Likes
csam
Shopify Staff
Shopify Staff
35 5 4

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

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes