Reworked remove runs to only delete directories no longer referenced in the database