I have a DataTable with some data and a exclusion List like below

ExamData (datatable)
ExamYear Completed
AZ-900: Azure Fundamentals2019
DP-900: Azure Data Fundamentals2021
AI-900: Azure AI Fundamentals2021
PL-900: Azure Power Platform Fundamentals2020

ExclusionYears (list)
[2018, 2019, 2020]

To remove rows from DataTable if "Year Completed" contains in exclusion list.

Here is the code (LINQ):
  1. List<DataRow> removeRows = ds.Tables[0].AsEnumerable()
  2. .Where(r => list.Contains(r.Field<string>("Year Completed")))
  3. .ToList();
  4. removeRows.ForEach(ds.Tables[0].Rows.Remove);
  5. ds.Tables[0].AcceptChanges();

Output
ExamYear Completed
DP-900: Azure Data Fundamentals2021
AI-900: Azure AI Fundamentals2021