Skip to content

hosts remove

vpd hosts remove

Remove a profile or a single entry from a profile

Synopsis

Remove an entire profile or a specific hostname entry from a profile.

Examples: vpd hosts remove myproject # remove entire profile vpd hosts remove myproject --hostname myapp.local # remove single entry

vpd hosts remove <profile> [--hostname <hostname>] [flags]

Options

  -f, --file string       Path to hosts file (default "/etc/hosts")
  -h, --help              help for remove
      --hostname string   Remove a specific hostname instead of the entire profile

SEE ALSO

  • vpd hosts - Manage /etc/hosts file profiles
Auto generated by spf13/cobra on 26-Mar-2026