# clear vpn-keys

## Syntax

```
clear vpn-keys
```

## Syntax Description

This command has no arguments.

## Defaults

## Usage Guidelines

This command is used to delete and regenerate the local Island’s public/private key pair used to establish secure connections with VPN peers.

Note that this will stop all communications with existing VPN peers until the new public key is provided to them. It will also prevent the mobile app from establishing a remote connection to the Island until it obtains the new public key, either by connecting via a LAN or by pasting the new public key in Tours. It will not affect the mobile app’s ability to connect directly via a local LAN.

## Examples

```
clear vpn-keys
```

## Related Commands

{% content-ref url="/pages/15rHKI4QkvHqURJHc0ij" %}
[show public-key](/island-router-cli-2.3.2/commands/show-public-key.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.islandrouter.com/island-router-cli-2.3.2/commands/clear-vpn-keys.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
