Hong Kong disqualified four opposition members of its legislature on Wednesday for endangering security, raising the prospect of a walk-out by pro-democracy legislators who oppose what they see as Beijing's ever tighter grip on the city.