delete invalid docs