code: def expire_file(filepath):
      
      load_message.cache_clear()
      orm.delete(pa for pa in model.PathAlias if pa.entry.file_path == filepath)
      orm.delete(item for item in model.Entry if item.file_path == filepath)
      orm.commit()
docs: Expire a record for a missing file