Can’t browse internet on Edge browser

No websites are able to load on edge browser, but working on other browsers. Same is the case for steam. Everytime I run it, it says it can’t connect to the internet. Any leads?

I had deleted the Edge related subfolders from Program Files(x86)/Microsoft to free up some space as it had occupied 2 GB space thinking it is just a browser, is it maybe related?

I have repaired Edge but still the problem persists. I have attached the content that I deleted. Edge WebView wasn’t deleted as it said that this program is running.

I have checked on this site to uninstall webview and reinstall but the problem still persists.