Remove unused rows.