This article discusses the steps required to uninstall the Okta AD Agent from the host server.
- Directories
- Active Directory
- Active Directory Agents
- In Windows, select StartControl > PanelProgramsPrograms and Features.
- Select the Okta AD Agent, and then select Uninstall.
- To remove the agent configuration data from the hard drive on the agent server, go to C:\Program Files (x86)\Okta and delete the Okta AD Agent folder. Deleting this folder removes the agent configuration data and the API token. The API token for the server remains valid in Okta, so it is important to remove the configuration data. Deleting this folder also removes all log records for the agent, which are stored in C:\Program Files (x86)\Okta\Okta AD Agent\logs. If needing to access log records, be sure to move these files to another location.
- To revoke the API token of an uninstalled agent:
- On the Okta Admin Console, click Directory > Directory Integrations.
- Click Active Directory and select the Agents tab.
- Under Agent Monitors, click Deactivate Agent twice.
- Click Delete agent twice.
Afterward, it is possible to remove the Okta AD Agents from the Okta Admin Dashboard by following these steps: How to Remove an Okta AD Agent from the Okta Admin Dashboard
NOTE: The AD Agent version 3.18 or above does not use an API token anymore, and it uses the OAuth 2.0 flow instead. Please see the following article for more details: AD Agent Changes Using OAuth 2.0
