Welcome to Microsoft Q&A Platform, thanks for posting your query here.
Based on the details shared, you are experiencing issues with deleting your VM and resource group. It sounds like the VM and resource group were not properly deleted and are still present in cost management. Check below steps and try them to see if that resolves this issue.
- Check the resource group and see if it is located in a different subscription. If it is located in a different subscription, you will need to switch to that subscription and delete the resource group from there.
- Check if the resource group is locked. If it is locked, you will need to unlock it before you can delete it.
If the above mentioned steps did not help, you may need to contact Azure support for assistance in deleting the resource group and VM. They should be able to provide further guidance and help resolve the issue.
Hope this helps.
If you need further help on this, tag me in a comment.
If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.