It works just like any deployment of ARM templates. The delete based on the ARM template and the actions of Terraform on other resources might have interfered, which can explain the resources still available or created after the remove based on the ARM template.
For a more detailed approach I’d need to have access to your subscription, I don’t think that is an option
Hope the recovery went well and it never happens again