alert(app.activeDocument.hyperlinks.length); var hLink=app.activeDocument.hyperlinks[0]; hLink.remove(); alert(app.activeDocument.hyperlinks.length);