Or you could use a delete query with a where clause instead which is much more efficient than using a select then a delete.