def jsonrpc_delete_lbry_file(self, p):
        """
        Delete a lbry file

        Args:
            'file_name': downloaded file name, string
        Returns:
            confirmation message
        """

        def _disp(file_name):
            log.info("[" + str(datetime.now()) + "] Deleted: " + file_name)
            return self._render_response("Deleted: " + file_name, OK_CODE)

        if p.keys() in "file_name":
            lbry_files = [self._delete_lbry_file(f) for f in self.lbry_file_manager.lbry_files
                                                    if p['file_name'] == f.file_name]
            d = defer.DeferredList(lbry_files)
            d.addCallback(lambda _: _disp(p['file_name']))
            return d
dataset/ETHPy150Open lbryio/lbry/lbrynet/lbrynet_daemon/LBRYDaemon.py/LBRYDaemon.jsonrpc_delete_lbry_file/swapped operands of `in`