CmdID / PowerShell / Cmdlets / Uninstall
Uninstall-RemoteAccess
Uninstalls DirectAccess (DA) and VPN, both Remote Access (RA) VPN and site-to-site VPN. Windows Server PowerShell reference
From the Windows Server PowerShell reference 9 parameters Its page in the reference
Parameters
-AsJobRuns the cmdlet as a background job.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-ComputerName, -CnSpecifies the IPv4 orIPv6 address, or host name, of the computer on which the RA server computer specific tasks should be run.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-EntrypointNameSpecifies the name of a site in a multisite deployment.-ForceForces the command to run without asking for user confirmation.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-VpnType, -RoleTypeSpecifies the type of VPN that should be uninstalled.-WhatIf, -wiShows what would happen if the cmdlet runs.