---
title: "getComments"
canonical: "https://support.appfire.com/space/PSCONF/15306532/getComments"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | getComment(pageId) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns comments for a given page.

Returns comments for a given page.

## Return Type

**[CComment []](https://appfire.atlassian.net/wiki/spaces/PSCONF/pages/15303915)**

Returns an array of comments for the selected page.

## Example

```javascript
CComment [] allComm = getComments(11801);
for(CComment comm in allComm) {
	deleteComment(comm.id)
}
```

Deletes all comments from the page.

## See also

> Macro (contentbylabel)