I set up our on premise SharePoint environment in a hybrid Office 365 environment a few weeks ago, but now I want to remove the configuration. I deleted the 2 service applications mentioned in this guide - http://www.sprocks.io/2016/07/sharepoint-2016-remove-hybrid.html but all my Mysite links etc are still sending me to the Office 365 login screen when clicked. Has anyone else had this issue? Thanks.
Did the issue occur in SharePoint 2016?
If so, you could go to central administration->office365-> Configure hybrid OneDrive and Sites features->remove the mysite URL and select None for hybrid feature.