def METHOD_NAME(cls, session: db.Session):
    """Deletes and re-computes all the search table."""
    DeviceSearch.query.delete()
    for device in Device.query:
        if not isinstance(device, Component):
            cls.set_device_tokens(session, device)