Leftover code after uninstalling app in Shopify 2

Hello,

Is it still required to manually remove leftover code after uninstalling the app in Shopify 2.0?

thank you in adnavce.

From what I understand it depends on the app.

Some apps add their files via the Script tag API in which case after uninstallation their files are removed. Whilst others manually add their files and might not remove them when uninstalling.

Hi, @jjjjjjjj !

Thanks for reaching out in our Community forums and for sharing your concern, I’d be happy to provide some additional information.

With the Online Store 2.0 update, we have introduced App blocks which changes the way apps are included inside of themes. App developers can now build UI components that can be added, removed, and configured directly through the theme editor without having to touch a theme’s code. This means uninstalls are also cleaner, with ghost code automatically removed. More information can be found on our Introducing Online Store 2.0 article. With that being said, some apps may require you to manually insert lines of code and it is always best to consult with your app developer before uninstalling the app.

How has your experience been so far? I’d love to hear your feedback.