Remove host from DB when UI fails

Referring to the following Bug:
Bug #18195: Foreman WebGUI times out on interfaces loading with lots of bonds/vlans (HyperVisor) - Foreman I wonder if there is a way
to remove the host without the GUI as the GUI times out.

Would be nice to have some workaround.