The most comprehensive way would be for everyone to disembark, do a full security search, then reboard everyone... maybe 40 mins or so for short haul, an hour or so for long haul... Offloading someone for illness or scared of flying or drunk is fairly common to be honest so the current procedures seem fine in normal circumstances unless there is sufficient reason by the captain to do a full cabin search