code: def remove(community_id, record_id):
      
      c = Community.get(community_id)
      assert c is not None
      c.remove_record(record_id)
      db.session.commit()
      RecordIndexer().index_by_id(record_id)
docs: Remove a record from community.