# Delete signatures of the certain type This article explains how to delete electronic signatures of the certain type with GroupDocs.Signature API. ## Overview [**GroupDocs.Signature**](https://products.groupdocs.com/signature/python-net) provides ability to delete signatures of the certain type from the documents over [delete](https://reference.groupdocs.com/signature/python-net/groupdocs.signature/signature/delete) method. Please be aware that [delete](https://reference.groupdocs.com/signature/python-net/groupdocs.signature/signature/delete) method modifies the same document that was passed to constructor of [Signature](https://reference.groupdocs.com/signature/python-net/groupdocs.signature/signature) class, so the example below copies the signed document first and deletes the signatures from the copy. ## How to delete signatures of the certain type from the document Here are the steps to delete signatures of the certain type from the document with GroupDocs.Signature: * Create new instance of [Signature](https://reference.groupdocs.com/signature/python-net/groupdocs.signature/signature) class and pass source document path as a constructor parameter; * Call [Signature](https://reference.groupdocs.com/signature/python-net/groupdocs.signature/signature) object [delete](https://reference.groupdocs.com/signature/python-net/groupdocs.signature/signature/delete) method and pass the [SignatureType](https://reference.groupdocs.com/signature/python-net/groupdocs.signature.domain/signaturetype/) of the signatures to remove, for example `SignatureType.TEXT`; * Check the returned [DeleteResult](https://reference.groupdocs.com/signature/python-net/groupdocs.signature.domain/deleteresult/): its `succeeded` list holds the deleted signatures and `failed` holds the signatures that could not be deleted. This example shows how to delete all text signatures from the document. Only the signatures that GroupDocs.Signature added are deleted; the document's own text stays as it is. {{< tabs "delete_signatures_by_type" >}} {{< tab "Python" >}} ```python import shutil from groupdocs.signature import Signature from groupdocs.signature.domain import SignatureType def delete_signatures_by_type(): # delete() saves the changes into the opened document, so work on a copy shutil.copy("signed.docx", "all_text_signatures_deleted.docx") with Signature("all_text_signatures_deleted.docx") as signature: # Delete every text signature in the document result = signature.delete(SignatureType.TEXT) print(f"Deleted {len(result.succeeded)} text signature(s), {len(result.failed)} failed") for number, deleted in enumerate(result.succeeded, 1): print(f" #{number}: '{deleted.text}' (id {deleted.signature_id})") if __name__ == "__main__": delete_signatures_by_type() ``` {{< /tab >}} {{< tab "signed.docx" >}} {{< tab-text >}} `signed.docx` is the sample file used in this example. Click [here](https://docs.groupdocs.com/signature/python-net/_sample_files/developer-guide/basic-usage/delete-signatures-from-documents/delete-signatures-of-the-certain-type/signed.docx) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "all_text_signatures_deleted.docx" >}} ```text Binary file (DOCX, 147 KB) ``` [Download full output](https://docs.groupdocs.com/signature/python-net/_output_files/developer-guide/basic-usage/delete-signatures-from-documents/delete-signatures-of-the-certain-type/delete_signatures_by_type/all_text_signatures_deleted.docx) {{< /tab >}} {{< /tabs >}} ## More resources ### GitHub Examples You may easily run the code above and see the feature in action in our GitHub examples: * [GroupDocs.Signature for Python via .NET examples, plugins, and showcase](https://github.com/groupdocs-signature/GroupDocs.Signature-for-Python-via-.NET) ### Free Online Apps Along with the full-featured Python library, we provide simple but powerful free online apps. To sign PDF, Word, Excel, PowerPoint, and other documents you can use the online apps from the **[GroupDocs.Signature App Product Family](https://products.groupdocs.app/signature/family)**.