Once all users have departed a Google Classroom meeting, the code expires instantly. Meeting codes are only valid for 365 days following their last use. If a code is used inside this 365-day window, it will extend the expiration date by another 365 days.