I had the same problem and tried this mod and it doesn't work on 2.5.6+
So I poke around that file and notice that there is another file that's being loaded first and I was able to make it work.
to remove all including the HUD from this view
edit file [dcs intall]\scripts\aircrafts\ _common\devices_defs.lua
change the 1 to a 0 in this line HUD_ONLY_VIEW = 1
render_purpose =
{
GENERAL = 0,
HUD_ONLY_VIEW = 1, -- make the 1 into a 0
SCREENSPACE_INSIDE_COCKPIT = 2,
SCREENSPACE_OUTSIDE_COCKPIT = 3,
GROUND_UNIT_OPERATOR = 4,
GROUND_UNIT_OPERATOR_SCREENSPACE = 5,
}
this should work on all aircrafts
To remove the left and right DDI and AMPCD instead but keep the HUD on FA-18C for example
edit file [dcs install]\Mods\aircraft\FA-18C\Cockpit\Scripts\Multipurpose_Display_Group\Common\indicator\BAKE\MPD_common_bake_init.lua
change this line
"purposes = render_purposes_to_use or {render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW}"
to
"purposes = render_purposes_to_use or {render_purpose.GENERAL}"
this you need to do it to each aircraft