Previous: Remote processes, Up: Usage

### 5.5 Cleanup remote connections.

Sometimes it is useful to cleanup remote connections. The following commands support this.

— Command: tramp-cleanup-connection vec

> This command flushes all connection related objects. `vec` is the internal representation of a remote connection. Called interactively, the command offers all active remote connections in the minibuffer as remote file name prefix like `/method:user @host:`. The cleanup includes password cache (see Password handling), file cache, connection cache (see Connection caching), connection buffers.

— Command: tramp-cleanup-all-connections

> This command flushes objects for all active remote connections. The same objects are removed as in `tramp-cleanup-connection`.

— Command: tramp-cleanup-all-buffers

> Like in `tramp-cleanup-all-connections`, all remote connections are cleaned up. Additionally all buffers, which are related to a remote connection, are killed.