Harry wasn’t expelled. After fretting about his future and worrying herself sick, the hearing before the Wizengamot had been anticlimactic, according to Harry. Due to Dumbledore’s intervention, Harry was cleared of all charges and free to return for their fifth year.