delete invalid doc