# Remove ODP Annotations Using C++

> C++ source code to remove annotations from ODP presentations.

Source: https://products.aspose.com/slides/cpp/annotation/odp/
Updated: 2026-06-18



## Remove Comments from ODP via C++

To remove annotations from an ODP file, use the [Aspose.Slides for C++](/slides/cpp/) API, a feature-rich and easy-to-use presentation manipulation API for C++.

### Delete Annotations from ODP - C++

```cpp
auto presentation = MakeObject<Presentation>(u"example.odp");

// Delete all comments from the presentation.
for (auto author : presentation->get_CommentAuthors())
{
    author->get_Comments()->Clear();
}

// Delete all authors.
presentation->get_CommentAuthors()->Clear();

presentation->Save(u"output.odp", SaveFormat::Odp);
presentation->Dispose();
```

## How to Remove Comments from ODP via C++

Install **Aspose.Slides for C++**. See [**Installation**](https://docs.aspose.com/slides/cpp/installation/).

Load an ODP file with an instance of the Presentation class.

Iterate over all authors in the loaded ODP file.

Remove all comments from each author.

Remove all authors at the end.

## Other Supported Annotation Formats
