What happens to app-owned collection sources after the app owning it was uninstalled

When an app is uninstalled - what happens to the app-owned collection sources created by the app? Will they remain forever in the store or will they be deleted after a delay?

If the metafield is under quertRoot.currentAppInstallation it gets deleted together with any resource owned by the app such as an automatic discount or payment method customization.

If the metafield is under a resource owned by the store it just persists there.

@David_Arbias thank you for the response - however the question is not about metafields. It’s about the new collection’s sources. I edited the title and the text which were a bit misleading.

Hey @Soufiane_Ghzal - thanks for raising this and for clarifying the question.

I did some digging here, and uninstalling an app doesn’t itself delete the collection sources that app created, so they won’t be deleted after a delay due to uninstall. I confirmed that a source remains as long as it’s still linked to a collection, since that collection may still be using it.

We’re working on adjusting our docs to account for this, and it should be updated soon. I’ll follow up here once that changes have shipped.

Hope this helps!

Hey @Soufiane_Ghzal - quick follow-up: the docs update clarifying what happens to collection sources after an app is uninstalled shipped back in August, and I just realized I didn’t update this thread yet as I mentioned I would. Thanks again for raising this!

Hi @Wes-Dev-Shopify can we have a link please?

@Soufiane_Ghzal you can find the changes here:

  • Uninstalling an app doesn’t delete its app-owned shareable sources. The sources remain linked to any collections that use them.