def remove_channel_backup(self, channel_id):
    chan = self.channel_backups[channel_id]
    assert chan.can_be_deleted()
    onchain_backups = self.db.get_dict('onchain_channel_backups')
    imported_backups = self.db.get_dict('imported_channel_backups')
    if (channel_id.hex() in onchain_backups):
        onchain_backups.pop(channel_id.hex())
    elif (channel_id.hex() in imported_backups):
        imported_backups.pop(channel_id.hex())
    else:
        raise Exception('Channel not found')
    with self.lock:
        self._channel_backups.pop(channel_id)
    self.wallet.save_db()
    util.trigger_callback('channels_updated', self.wallet)
def remove_channel_backup(self, channel_id):
    chan = self.channel_backups[channel_id]
    assert chan.can_be_deleted()
    onchain_backups = self.db.get_dict('onchain_channel_backups')
    imported_backups = self.db.get_dict('imported_channel_backups')
    if (channel_id.hex() in onchain_backups):
        onchain_backups.pop(channel_id.hex())
    elif (channel_id.hex() in imported_backups):
        imported_backups.pop(channel_id.hex())
    else:
        raise Exception('Channel not found')
    with self.lock:
        self._channel_backups.pop(channel_id)
    self.wallet.save_db()
    util.trigger_callback('channels_updated', self.wallet)