I am trying to delete a function app so that I can recreate it but when I try to recreate it says it already exists
This is the command I used to delete app
az functionapp delete --name MyFunctionApp --resource-group azure-functions
Then I listed the fucntions list and it returned nothing since I have no other functions.
az functionapp list --output table
I even went as far as to delete the resource group where function resides. The resource group is gone
az group delete --name azure-functions
Yet when I try to run this code I get an error
az functionapp create --resource-group azure-functions2 --consumption-plan-location eastus --runtime python --runtime-version 3.11 --functions-version 4 --name MyFunctionApp --storage-account azurefunctions --os-type Linux
Error output
Website with given name MyFunctionApp already exists.
I can probably create one with a new name yes but I rather make sure I have cleaned house and I dont have any old loose ends that may cause confusion when I redeploy.
Is there some thing I am missing to delete somewhere. I deleted the resource that had the function I am at a loss here. I do have 1 more resource group but that has 0 functions.