---
name: ssh_config_remove_entry
kind: function
lang: go
domain: infra
version: "1.0.0"
purity: pure
signature: "func SSHConfigRemoveEntry(entries []SSHConfigEntry, alias string) ([]SSHConfigEntry, error)"
description: "Elimina un entry por alias de la lista. Error si el alias no existe."
tags: [ssh, config, remove, remote]
uses_functions: []
uses_types: [ssh_config_entry_go_infra]
returns: []
returns_optional: false
error_type: ""
imports: [fmt]
params:
  - name: entries
    desc: "lista actual de SSHConfigEntry"
  - name: alias
    desc: "alias del host a eliminar"
output: "nueva lista sin el entry eliminado"
tested: true
tests: ["elimina entry existente", "error si alias no existe"]
test_file_path: "functions/infra/ssh_config_parse_test.go"
file_path: "functions/infra/ssh_config_remove_entry.go"
---

## Ejemplo

```go
updated, err := SSHConfigRemoveEntry(entries, "old-server")
```

## Notas

No muta el slice original — crea una copia nueva sin el entry eliminado.
