こちらで行った設定の削除方法です。
SoftEther_VPN の vpncmd の使い方
クライアントの設定の削除
vpncmd /client
アカウントを切り離します。
VPN Client>AccountDisconnect tun0
AccountDisconnect command - Disconnect VPN Connection Setting During Connection
The command completed successfully.
アカウントを削除します。
VPN Client>AccountDelete tun0
AccountDelete command - Delete VPN Connection Setting
The command completed successfully.
NIC を無効にします。
VPN Client>NicDisable tun0
NicDisable command - Disable Virtual Network Adapter
The command completed successfully.
NIC を削除します。
VPN Client>NicDelete tun0
NicDelete command - Delete Virtual Network Adapter
The command completed successfully.
スクリプトにするとこうなります。
vpn_delete.sh
#
# vpn_delete.sh
#
# Dec/13/2019
#
VPNCMD='/opt/vpnclient/vpncmd /client localhost'
#
$VPNCMD /cmd AccountDisconnect tun0
$VPNCMD /cmd AccountDelete tun0
#
$VPNCMD /cmd NicDisable tun0
$VPNCMD /cmd NicDelete tun0
#
#
サーバーの設定の削除
vpncmd /server
HUB の選択
VPN Server>Hub Default
Hub command - Select Virtual Hub to Manage
The Virtual Hub "DEFAULT" has been selected.
The command completed successfully.
ユーザーの削除
VPN Server/DEFAULT>UserDelete scott
UserDelete command - Delete User
The command completed successfully.