Remove reference ot document