# Remove Comments from PPTX in Python

> Remove comments and comment authors from PPTX presentations in Python with Aspose.Slides for Python via .NET.

Source: https://products.aspose.com/slides/python-net/annotation/pptx/
Updated: 2026-07-22



## Remove Comments from PPTX via Python

[Aspose.Slides for Python via .NET](/slides/python-net/) provides access to the comments and comment authors stored in a PPTX presentation. Load the file with `Presentation`, clear each author's `comments` collection, clear `comment_authors`, and save the result in PPTX format.

### Remove Comments from PPTX in Python

```python
with slides.Presentation("presentation.pptx") as presentation:
    for comment_author in presentation.comment_authors:
        comment_author.comments.clear()

    presentation.comment_authors.clear()
    presentation.save("presentation-without-comments.pptx", slides.export.SaveFormat.PPTX)
```

## How to Remove Comments from PPTX via Python

Follow these steps to remove all comments and comment authors from a PPTX presentation.

Install [**Aspose.Slides for Python via .NET**](https://docs.aspose.com/slides/python-net/installation/).

Open the PPTX file with `Presentation`.

Iterate through `comment_authors` and clear each author's `comments` collection.

Clear the `comment_authors` collection.

Call `save` with `SaveFormat.PPTX` to write the updated PPTX presentation.

## Other Supported Comment Formats
