# Remove annotation from document This page describes how to remove annotations from document when collaborate, edit and annotate documents using GroupDocs.Annotation for Java. [GroupDocs.Annotation](https://products.groupdocs.com/annotation/java) allows you to remove all previously added annotations. To do this, follow these steps: 1. Instantiate the [Annotator](https://reference.groupdocs.com/java/annotation/com.groupdocs.annotation/Annotator) class. Specify the input document path or stream. 2. Instantiate the [SaveOptions](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation.options.export/saveoptions/) class. Set `AnnotationTypes = AnnotationType.None`. 3. Call the [save()](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation/annotator/#save--) method. Specify the output document path or stream. The following code snippet shows how to remove annotation using its index: {{< tabs "example1">}} {{< tab "Java" >}} ```java // This example demonstrates how to remove annotations from document. // Create an instance of Annotator class Annotator annotator = new Annotator("inputPath"); SaveOptions saveOptions = new SaveOptions(); saveOptions.setAnnotationTypes(AnnotationType.None); // Save result to file annotator.save("outputPath", saveOptions); ``` {{< /tab >}} {{< /tabs >}}