In SharePoint, I need to delete a SharePoint group connected sites through PowerShell, but i was facing an error
This site belongs to a Microsoft 365 group. To delete the site, you must delete the group
how to delete SharePoint group connected sites using PowerShell?

You can use PnP PowerShell or CLI for Microsoft 365 to easily delete Microsoft 365 group and SharePoint site associated with it.
Example:
Using PnP PowerShell:
Using CLI for Microsoft 365:
References:
Important Note: Link #3 and #4 given above deletes all M365 groups and SharePoint sites associated with. DO NOT run those scripts as is in your environment. I have provided those links just for reference to see how to use those commands. You will have to run the specific commands for only one site/M365 group.