powershell command to delete user code example Example: powershell delete local user PS C:\> Remove-LocalUser -Name "AdminContoso02"