Hi,
You may not be able to remove an App Service Plan and you hit the following error
Succeeded: 0, Failed: 1, Canceled: 0.Error details {app service plan name}: Server farm ‘ app service plan name ‘ cannot be deleted because it has web app(s) setproperties assigned to it. (Code: Conflict) Server farm ‘ app service plan name ‘ cannot be deleted because it has web app(s) setproperties assigned to it. undefined (Code: Conflict) undefined
Looks like a bug related to the Web App or the Function not ‘correctly’ removed by ARM. You can verify this by looking to the Apps deployed to that App Service plan.

The solution is to force delete this ghost app , and this can easily done through powershell
- Go to https://resources.azure.com/
- Paste the app service plan name on the ‘search’ bar

- Go to Sites and copy the Resource ID of the troublsome site

- Open an Powershell window (you need az module) or use the Azure Shell in the Azure Portal
- Use the Remove-azresource cmdlet to remove that ghost resource
Remove-AzResource -ResourceId "/subscriptions/qsqsqsqsqsqsqs/resourceGroups/qsqsqsqsqsq/providers/Microsoft.Web/sites/setproperties"
Now, the resource has been completely cleaned, you can delete your app service plan
