Perform the following steps:
- Open Server Manager (servermanager.exe).
- From the gray top-banner, click Manage. From the menu, select Remove Roles and Features.
The Remove Roles and Features Wizard appears.
- On the Before You Begin screen, click Next >.
- On the Select destination server screen, acknowledge the local server by clicking on Next >.
You reach the Remove server roles screen:
- On the Remove server roles screen, deselect the Active Directory Federation Services role. Afterward, click Next >.
- If the AD FS server is part of an AD FS farm running WID, then, on the Remove features screen, deselect the Windows Internal Database ...