When a merchant uninstalls, you get one webhook: app/uninstalled. By then your access token for that shop is dead.
Cleanup is yours: mark the plan inactive (Shopify already cancelled the subscription), stop that shop's jobs, and answer the mandatory compliance topics for viewing and erasing personal data.
AI tell: an uninstall handler that calls the Admin API 'one last time'.