write a method DeleteAll in your table repository class, if one is there.
public void DeleteAll()
{
table1Repository.Entities.table1.RemoveRange(table1Repository.Entities.table1.AsEnumerable().Where(cb => cb.Id > 0));
table1Repository.Entities.SaveChanges();
}