Uninstall a Shopify app with an API call
There are situations where an app will be required to remove old installations from the system. In cases where user intervention is not required, you can send a request to Shopify API to remove an app from a shop.
Uninstalling an application also triggers cleanup tasks in Shopify. This includes deleting any registered webhooks, script tags, and admin links. If an app is uninstalled during key rotation, then both the old and new access tokens will become unusable.
Example implementationsAnchor link to section titled "Example implementations"
The following example shows how to revoke API access:
The following example shows a simple way to revoke API access: