Forum Discussion

Ross_Cullen's avatar
Ross_Cullen
Copper Contributor
Mar 21, 2025

Issue with SharePoint Add-in Uninstalling After Renaming App Web url

We are migrating customers from the retired SharePoint Add-in model to the new SPFx model. As part of this, we automatically rename the App Web (created during Add-in installation) and changing its URL and create a new subsite with the original App Web’s name & URL to host the SPFx app and its content.

However, when the customer later uninstalls the Add-in, SharePoint deletes the new subsite instead of the original App Web, which still exists under its renamed URL. This suggests that the installed Add-in is not aware of the App Web renaming/changed URL, causing it to target the wrong site for deletion.

Our migration process relies on preserving existing links by maintaining the original App Web URL for the new subsite.

Is there a way to update the installed Add-in to recognize the renamed App Web? Alternatively, is there a recommended approach to prevent the unintended deletion of the new subsite when the Add-in is uninstalled?

No RepliesBe the first to reply

Resources