An inactive voter and the actions to be taken are outlined in HAVA -- the Help America Vote Act of 2002.
If a voter does not vote in two consecutive federal elections -- NOT "two consecutive elections", but two consecutive federal elections -- then that voter is marked on the voting rolls as INACTIVE. If the inactive voter shows up to vote, they are allowed to vote, all other things being equal -- that is, if the voter has not moved, changed name, etc. The act of voting reactivates the voter.
Another way a voter is removed from the rolls: Annually the USPS sends to all states a list of people who have changed their address, either within the state or moved out of state. The states then compare the voter's new address to the address on the voter's registration record. If the voter's record has an old address, then, a letter is sent to the old address MARKED FOR THE POST OFFICE TO FORWARD TO THE NEW ADDRESS. That letter contains a form that must be returned within 30 days, asking the voter to update their address. If the form is not returned within 30 days the voter is removed from the rolls.
In Virginia, the General Assembly requires the Dept of Elections to provide the GA with an annual report listing the number of voters removed from voting rolls and the reason for removal. These reports are public documents and can be read here.
https://www.elections.virginia.gov/resultsreports/maintenance-reports/