Remove script tag upon uninstalling app

Solved
jec5789
Tourist
4 1 2

Hello,
I am not sure if I understand this correctly. We want to remove script tags when an app is uninstalled. We tested this by running the scriptTagCreate mutation in Shopify GRAPHQL App to create a script tag. And then when we uninstalled the app, the script tag is still there. Am I testing this wrong and should not create the script tag in Shopify GraphQL App? Or is there a way to uninstall the GraphQL app through code?


Thank you!

Accepted Solution (1)

Accepted Solutions
jec5789
Tourist
4 1 2

This is an accepted solution.

Okay, so I got confused about the concept of Script Tag in Local app and GraphQL app. I don't need to remove script tag in GraphQL app but only need to remove it from local app. So I should really test if a script tag is created in local app by using REST API (one of many ways) instead of using the GraphQL app.

View solution in original post

Reply 1 (1)
jec5789
Tourist
4 1 2

This is an accepted solution.

Okay, so I got confused about the concept of Script Tag in Local app and GraphQL app. I don't need to remove script tag in GraphQL app but only need to remove it from local app. So I should really test if a script tag is created in local app by using REST API (one of many ways) instead of using the GraphQL app.

View solution in original post