hosts_remove
Delete a hostname from the managed /etc/hosts section, leaving system entries untouched.
Instructions
Remove a hostname from managed /etc/hosts entries.
Only removes from the Kali-MCP managed section — system entries (localhost, etc.) are never touched.
Args: hostname: The hostname to remove (e.g., 'target.htb')
Returns: Removal result and remaining entries
Example: hosts_remove(hostname='old-target.htb')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |