You also need to ensure it's OnShow Event is nil
This hides all flags on the minimap:
Lua Code:
MiniMapInstanceDifficulty:Hide()
MiniMapInstanceDifficulty.Show = function() end
GuildInstanceDifficulty:Hide()
GuildInstanceDifficulty.Show = function() end