> This page is for Itential Gateway, version 5 (default).
> For other versions, use one of these documentation indexes:
> - 5 (default): https://docs-test.itntl.com/itential-gateway/5/llms.txt
> - 4: https://docs-test.itntl.com/itential-gateway/4/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-test.itntl.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-test.itntl.com/_mcp/server.

# iagctl hostkeys clear

Clear all host keys from the gateway.

The `iagctl hostkeys clear` command removes all host keys from the gateway `known_hosts` file. The `known_hosts` file is located in the application working directory set by the `GATEWAY_APPLICATION_WORKING_DIR` configuration variable.

## Syntax

```bash
iagctl hostkeys clear [flags]
```

## Examples

```bash
iagctl hostkeys clear
```

## Options

```bash
  -h, --help   Help for clear
```

## Options inherited from parent commands

```bash
  --profile string   Specify the client profile to use (case-insensitive, defaults to [client] section)
  --config string   Path to the configuration file
  --raw             Display the result of the command in raw format
  --verbose         Enable verbose output
```