Deleting blogs and users

Do any of you know a way to delete all blogs in a mu site that have never been updates and there user? Maybe via ssh, because phpMyAdmin will not work with the size of the database.

thanks