delete
Remove a WireGuard Peer
Usage
ionosctl vpn wireguard peer delete [flags]
Aliases
For wireguard
command:
[wg]
For peer
command:
[p]
For delete
command:
[d del rm]
Description
Remove a WireGuard Peer
Options
-a, --all Delete all peers. Required or --peer-id
-u, --api-url string Override default host URL. If contains placeholder, location will be embedded. Preferred over the config file override 'vpn' and env var 'IONOS_API_URL' (default "https://vpn.%s.ionos.com")
--cols strings Set of columns to be printed on output
Available columns: [ID Name Description Host Port WhitelistIPs PublicKey Status]
-c, --config string Configuration file used for authentication (default "$XDG_CONFIG_HOME/ionosctl/config.yaml")
-f, --force Force command to execute without user input
--gateway-id string The ID of the WireGuard Gateway (required)
-h, --help Print usage
-l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra")
--no-headers Don't print table headers when table output is used
-o, --output string Desired output format [text|json|api-json] (default "text")
-i, --peer-id string The ID of the WireGuard Peer you want to delete (required)
-q, --quiet Quiet output
-v, --verbose Print step-by-step process when running command
Examples
ionosctl vpn wireguard peer delete --gateway-id GATEWAY_ID --peer-id PEER_ID
Last updated