It uses a cron job, which searches for login dates which are older then an expiry time, and then deletes it.
On the other hand: You can have a script in the board, which is started once a day when somebody makes a post that searches the usertables for expired accounts.