Remove data if present in the presence of errors