It's good to refer the following article also
Can I recover a deleted resource group?
No, you can't recover a deleted resource group. However, you might be able to restore some recently deleted resources.
Some resource types support soft delete. You might have to configure soft delete before you can use it
Hope this helps.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--