Your Gmail account is considered inactive when you haven’t accessed it for more than 24 months (two years). If your account becomes inactive, you could lose the data that you stored in Gmail, such as messages, files, pictures, and videos. Still, you won’t lose the account.
As far as I know, Gmail accounts may expire if they aren’t used in 9 months. Beyond that, it is up to Google’s discretion whether they choose to delete accounts or not. There is no guarantee of that. As for the script, you should check the ‘ Last account activity ‘ in Gmail.
While I was reading we ran into the question “When an inactive Gmail account expires?”.
This is what I discovered. when an Inactive Gmail Account Expires Per the Gmail Program Policies(since revised), a Gmail account was deleted by Google and the username became unavailable after nine months of inactivity. Logging in to the Gmail web interface counted as activity, as did accessing the account from another email account.
In years past, you could keep your Gmail account as long as you wanted and as long as you used it in a sensible manner. You had to use it, though. Google automatically deleted Gmail accounts that were not regularly accessed.
Does Gmail expire in China?
No, Gmail accounts do not expire over time. Google still reserves the right to disable or delete your account, but it won’t delete it due to inactivity or usage over a particular period. Does Gmail work in China? Like other Google services, Gmail is also banned in China .
How do I Keep my Gmail account active?
To keep your Gmail account active, log in to your email account once in a while. Log in and view your emails at least once a year (or more often to be on the safe side). You can send an email, delete an email, or perform any task while logged in to Gmail for it to remain an “active” account.