Open Server Manager and click > Remove Roles and Features . Select the target server and uncheck Remote Access .
Once the node is removed from the cluster's configuration, you must officially uninstall the role from the server itself to clean up local binaries and services. remove web application proxy server from cluster
Set-WebApplicationProxyConfiguration –ConnectedServersName ((Get-WebApplicationProxyConfiguration).ConnectedServersName -ne '://domain.com') Use code with caution. Open Server Manager and click > Remove Roles and Features