Zend certified PHP/Magento developer

Delete products with no stock and no sales history

I have inherited a broken Magento 1 store that I am trying to bring back to life.
The migration to Magento 2.3.3 went without a hitch, and now I’m trying to clean up the huge number of products (2,000,000+) in the store, a mix of Simple Products and Grouped Products.

Is there a simple (or not so simple) way of removing items that show a stock quantity of 0 AND no sales history for that item?

Thanks