code: def expire_record(record):
      
      load_message.cache_clear()
  
      # This entry no longer exists so delete it, and anything that references it
      # SQLite doesn't support cascading deletes so let's just clean up
      # manually
      orm.delete(pa for pa in model.PathAlias if pa.entry == record)
      record.delete()
      orm.commit()
docs: Expire a record for a missing entry