Cancel document ignoring raise_link_exists_exception method

How can I cancel a document and ignore raise_link_exists_exception function?