Blocks associated with an app is NOT automatically removed

Topic summary

Issue: Shopify’s docs state that blocks added via a theme app extension are automatically removed from a theme when the app is uninstalled. Developers report this is not happening.

Observed behavior: After uninstalling, the app’s block persists in the theme code and reappears in the Theme Editor upon reinstallation. This makes it unclear whether a block is truly removed or still present (possibly as orphaned code).

Context: A “block” here refers to a theme component (Liquid-based) managed through Theme App Extensions and the Theme Editor.

Impact: Confusion during install/uninstall cycles and potential leftover code in themes.

Status: No resolution or official clarification provided in the thread. Open questions include whether this is a bug or expected behavior, and how developers can reliably detect and ensure removal of app-associated blocks on uninstall.

Summarized with AI on January 10. AI used: gpt-5.

In at the bottom of this page, documentation says the block associated with an app is removed after uninstallation, but it doesn’t. When i uninstall my app it’s still in the code, and when i install it again it appears in theme editor too.

1 Like

This is EXACTLY what continues to happen. I have no idea at this point how to tell if a block is installed or not?

1 Like