How can I use webhook to know who deleted my app so I can remove him from database?

Solved
stefansweb
Shopify Partner
13 3 9

Greetings to all, I'm new in Shopify app development and I'm using PHP for creating my applications for Shopify I have an access token and store URL in my database and now I want to know how can I delete that when the user uninstall my app so I can delete record in my database I heard of webhook Shopify API but I do not understand how it's work and how to use it, can someone help me how can I achieve this and give me code example?

Stefan Momcilovic
Accepted Solution (1)
stefansweb
Shopify Partner
13 3 9

This is an accepted solution.

Reply 1 (1)
stefansweb
Shopify Partner
13 3 9

This is an accepted solution.

Here is the solution:

 

https://weeklyhow.com/shopify-uninstall-webhook-api-tutorial/

Stefan Momcilovic