He wants to clear "#CHAN" from all aop entries, and if removing #chan from an entry leaves it with no channels, remove the entry.