htb_hosts_clean
Remove managed host entries by exact tag, matching all patterns, or exclusion keep-list; use dry-run to preview changes before editing /etc/hosts.
Instructions
Remove managed host entries. No args wipes the whole block; tag removes one box by its exact tag; match removes the entries htb_hosts_select would return for the same patterns (every pattern must match); exclude is the inverse keep-list, removing everything EXCEPT entries matching ANY pattern. The three are mutually exclusive. Set dry_run to preview what would go without touching the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Remove only entries with this exact tag | |
| match | No | Remove entries matching EVERY pattern (as htb_hosts_select) | |
| dry_run | No | Report what would be removed without changing the file | |
| exclude | No | Fuzzy patterns to KEEP; everything else is removed |