So I was working on a canvas App before deciding to move it to a managed solution. As expected, issues started popping up which I resolved 1 by 1. One issue in particular was that exporting the solution would throw an error of missing entities in the solution that are supposedly part of the App. They were a part of the original app that had long been removed but still remained as ghosts in the solution. Added and removed them, reconnected and disconnected; did everything, but nothing worked. The only solution was to edit the xml file in the exported solution and remove them manually; highly undesirable. The permanent fix was, I had to delete the entities from my environment completely and only then did they disappear from my solution errors. Not ideal to say the least.
Now that the missing entity issue was resolved, the solution exports fine, but my canvas App still shows a Flow that has been long removed as well. Though it does not throw an error, it bothers me that the App flows section still has a reference to a Flow that is no longer a part of my solution. I would rather not delete that flow from my environment just to exorcise its ghost from my solution. Any ideas?
I hope the dirty way of fixing this issue helps someone here, as I have seen this problem pop up in similar posts. However, anyone got a better way of doing this? Completely removing components from your environment to get rid of them from your app should surely be a resort after the last resort.