If in doubt about potentially removing something then the following code, which utilises powershell from within your batch file, will just comment out any matching lines. (Edit SiteList as appropriate).
@Echo Off
Set SiteList="drive.google.com" "microsoft.com" "dostips.com" "stackoverflow.com"
For %%A In (%Sitelist%) Do Call :Sub %%A
Exit/B
:Sub
@Powershell "(Get-Content """$($env:windir)\System32\drivers\etc\hosts""") -replace ('^\s*127.0.0.1\s*%~1','#127.0.0.1 %~1') | Out-File """$($env:windir)\System32\drivers\etc\hosts""" -Force"
Because the hosts file is located in a protected area of your system you will need to Run as administrator.
The method is as used in the link kindly provided by Hackoo in the comments section, but due to your batch-file tag and your stated lack of knowledge I have provided this as an alternative.
It is also worth noting that some hosts use 0.0.0.0 instead of 127.0.0.1, so you may need to adjust the code accordingly.