def deleteLink(self, linkdict):
CheckParent(self)<EOL>val = _fitz.Page_deleteLink(self, linkdict)<EOL>if linkdict["<STR_LIT>"] == <NUM_LIT:0>: return<EOL>linkid = linkdict["<STR_LIT:id>"]<EOL>try:<EOL><INDENT>linkobj = self._annot_refs[linkid]<EOL>linkobj._erase()<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT>return val<EOL>
Delete link if PDF