<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _cleanup_channel(self, channel_id):
 """Remove the the channel from the list of available channels. :param int channel_id: Channel id :return: """

        with self.lock:
            if channel_id not in self._channels:
                return
            del self._channels[channel_id]