Remove Office 365 federation from ADFS server

1. Check federation status,
PS C:\Users\administrator> Get-MsolDomain | fl name,status,auth*

Name           : mfalab3.com
Status         : Verified
Authentication : Federated

2. From ADFS server, run following Powershell commands.

Set-MsolADFSContext -Computer th-adfs2012

Set-MsolDomainAuthentication -Authentication Managed -DomainName mfalab3.com

Get-MsolDomain | fl name,status,auth*

(Note : th-adfs2012 : adfs server, mfalab3.com : test domain name)

3. Check federation status again,

PS C:\Users\administrator> Get-MsolDomain | fl name,status,auth*

Name           : mfalab3.com
Status         : Verified
Authentication : Managed

4. Login to O365 to check if it is not redirected to ADFS server