Sites with no visits



is there an (easy) method of getting al sites with no visits in the last x days?

I want to (bulk) delete inactive sites generated from a wordpress network. I found the mysql queries to delete logs and statistics but need to get the site-ids to get started.