We have a deprecated service that’s still the handler for a couple of our Shopify webhooks. Context:
- 
Around 100 merchants are still pointing to this old handler.
 
- 
For many of them, locating a valid shop token in our system is difficult (some are outdated or missing in the DB due to past failures).
 
- 
We moved these webhooks to be managed by TOML, so the info is not being lost in our system for any merchant.
 
My plan was to have the handler return a 404, which (as per Shopify docs) should cause Shopify to automatically remove/uninstall those webhooks for the affected shops.
The problem:
- 
I do see 404 responses logged (in my service and the partner dashboard).
 
- 
I do see retries happening (e.g. attempts #7, #8, etc.).
 
- 
But even after a week, I’m not seeing the webhooks being removed from the affected merchants.
 
Has anyone else run into this? Does Shopify reliably uninstall webhooks after repeated 404s, or could this be a reporting issue on my end? Any insights would be super helpful 
             
            
              
              
              
            
            
           
          
            
            
              Hey @Ishaan_Shettigar,
Thanks for reporting this. Just to confirm, you’re seeing more than 8 failures without the webhooks being removed?
Have you tried running a delete mutation to remove the API created webhooks? webhookSubscriptionDelete - GraphQL Admin
             
            
              
              
              
            
            
           
          
            
            
              Hey @KyleG-Shopify ,
I am seeing 7 and 8 attempts, yes, but I’m not seeing the webhook being removed. Is there a reason why? The webhook gets fired again with a different payload, and then it just keeps happening, and I can’t seem to figure out why they’re not getting uninstalled.
For the aforementioned 100 merchants, locating a valid shop token in our system is difficult. So I figured Shopify would just remove these webhooks for them if the attempts = 8, but its been a week and only around 2-3 merchants’ webhooks have been removed. I’m seeing a lot of failed attempts in the dev dashboard but no webhooks being removed.
             
            
              
              
              
            
            
           
          
            
            
              Thanks for sharing that @Ishaan_Shettigar. That is strange that they aren’t being removed after 8 attempts.
I would suggest for next steps to reach out to our support team directly and share a few examples of webhooks (subscription ID’s and specific webhook id’s) that failed this many times but weren’t deleted. That will help us locate this better in our logs to see why this is happening.
             
            
              
              
              1 Like
            
            
           
          
            
            
              Thank you so much Kyle, I’ll contact Shopify support.
             
            
              
              
              1 Like