# Remove PPT Annotations using Java

> Remove comments and comment authors from PPT presentations in Java with Aspose.Slides for Java.

Source: https://products.aspose.com/slides/java/annotation/ppt/
Updated: 2026-07-09



## Remove Comments from PPT via Java

Aspose.Slides for Java lets you remove comments and comment authors from PPT presentations. Load a file with the `Presentation` class, iterate through `ICommentAuthor` objects from `getCommentAuthors`, clear their comments, and save the updated presentation.

### Delete Annotations from PPT - Java

```java
Presentation presentation = new Presentation("presentation.ppt");
try {
    for (ICommentAuthor commentAuthor : presentation.getCommentAuthors())
    {
        commentAuthor.getComments().clear();
    }

    presentation.getCommentAuthors().clear();

    presentation.save("cleaned-presentation.ppt", SaveFormat.Ppt);
} finally {
    presentation.dispose();
}
```

## How to Remove Comments from PPT via Java

Install Aspose.Slides for Java. See [Installation](https://docs.aspose.com/slides/java/installation/).

Load the PPT file with the `Presentation` class.

Iterate through the `ICommentAuthor` objects from `getCommentAuthors`.

Clear each author's comments with `getComments().clear()`.

Clear the comment author collection and save the updated PPT file.

## Other Supported Annotation Formats
