Firstly, check they are actual squares and it’s not your illustrator background settings. If not (of course it isn’t, that’d be too easy!), then you could select one square and the do a select same fill colour and hope nothing else is spec’d with the exactly the same colour.Also, it's a nightmare to delete, you have to delete each square, no?