Shopify webhooks registered but not triggered when uninstall app

Topic summary

A developer encountered an issue where Shopify webhooks were successfully registered but failed to trigger upon app uninstallation. The webhooks should have removed data from the database and created a log file via a delete.php script, but nothing occurred.

Key Details:

  • Webhooks showed as registered in the admin panel
  • The delete.php file was suspected to be the problem source
  • Developer shared their PHP code for troubleshooting
  • Tutorial from weeklyhow.com was used as reference

Resolution:

  • Another developer (shop_dev1) reported the same issue with MySQL table updates
  • Original poster confirmed solving the problem and shared a Google Drive link with a working app example
  • shop_dev1 later confirmed they fixed the issue independently

The discussion is now resolved, though the specific solution details were not explicitly documented in the thread.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

Hello, shopify app developer. I am developing an app while I have been facing a problem at almost last steps of developments.

I have succesfully registered an webhooks, we can see status after installed app. check below…

But after uninstalled app it should triggred and removing data from database which I request on delete.php file and also should create .log file to store response data. But nothing is happen. I think there might be a problem with delete.php file. I uploaded full delete.php file for your kind information. please help me if you can.

shop_domain = $decoded_data['shop_domain'];

      $res = $decoded_data['shop_domain'] . ' is successfully deleted from the database';
    

    } else {
      $res = $data;
    }
  }
} else {
  $res = 'The request is not from Shopify';
}

error_log('Response: '. $res); //check error.log to see the result

Let me know if you need to know something more.

I have followed this tutorial to create webhooks.
https://weeklyhow.com/shopify-uninstall-webhook-api-tutorial/

Best Regards

Zahid

Hello @zahid3d29

I hope you are well!

I am facing same issue. I got the registered webhook but when I check in mysql table it is not working. I hope you got the solution and please help me to fix this issue asap.

Hi, I am actually busy right now. Yes, I solved that problem long ago. Please check the attached link and download that app and you can explore.
https://drive.google.com/file/d/16PCbDdMNrdWGpMdNpZ0cF9NlQ-rY70x-/view?usp=sharing

Hello @zahid3d29

Thanks for your quick response. I have fixed this issue.