There’s several plugins in the directory that will track the last login time of your users, each with various options:
http://wordpress.org/extend/plugins/search.php?q=last+login
You could use one of those to track login times, and then delete unused accounts based on the information one of those plugins provides.