getNodesToDelete

Updates the list of nodes to be deleted based on the current filter criteria.