Hi @Krishna-0852 ,
maybe this helps to get started: https://www.folkstalk.com/2022/09/how-to-delete-bicep-resources-with-code-examples.html
If an empty Bicep file will delete all resources this way it should be possible to delete a VM and associated resources as well. Just delete the VM details and associated resources in the Bicep file you used to deploy the resources and run az deployment group create -f ./<your main.bicep file> -g <your resourcegroupname> --mode Complete
.
I would recommend to run a test first!
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten