@BhargaviAnnadevara-MSFT I have already tried the commands you comment and although they are executed correctly, the resource is not deleted.
Obviously, the resource group cannot be deleted because it still contains this resource.
well, I have already worked with the support of MS in the case and the solution was to create an application with the same name and later delete it.
I appreciate your support in this case.