This is certainly an issue with the application architecture. Its an issue with how the application is deployed from the marketplace. When the application is deployed it asks for a separate resource group to put the application in, but it also creates its own resource group to put all resources into that support the application. Its an odd architecture. I was able to resolve the issue by deleting managed application first then I was able to delete all the other resources.