modified removedocfromchannel api