When we develop a web part, we definitely face errors, but this error may be prevent you from loading the page and all you can see is an error! Helpful I know! Lets discover how to remove a bad Web Part – SharePoint
Anyway the problem is, we want to remove the web part from the page, but we can’t even edit the page at all.
Add to the URL this QueryString?Contents=1
If this is your URL http://servername/pages/home.aspx then add to it the QueryString to be http://servername/pages/home.aspx?contents=1
I haven’t specified the SharePoint version is it works from SharePoint 2007 .. 2010 & 2013 but not sure about more previous versions but who still uses it anyway !
Hope that helps.