You can ModelState.Clear() it. But this will remove all errors and values. If you want to remove only errors that could go through all the elements in the ModelState, and for each element, delete the errors that might be associated with it. Once you do this, ModelState.IsValid will become true .
source share