def METHOD_NAME(api_client, db, thread, default_namespace):
    ts = int(time.time() + 22)
    cursor = get_cursor(api_client, ts)
    messages = []
    for _ in range(100):
        messages.append(add_fake_message(db.session, default_namespace.id, thread))
    for message in messages:
        db.session.delete(message)
    db.session.commit()
    sync_data = api_client.get_data(f"/delta?cursor={cursor}&exclude_types=thread")
    assert len(sync_data["deltas"]) == 100
    assert all(delta["event"] == "delete" for delta in sync_data["deltas"])