Remove pattern based ports.