Skip to end of banner
Go to start of banner

deleteComment

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Current »

Description

Deletes a comment with the specified id, deletes the latest comment or deletes all comments from a given page.

Parameters

Return Type

Number

The number of comments deleted.

Examples

Example 1

number pageId = 123456;
CComment[] comments = getComments(pageId);
for (CComment comment in comments) {
    deleteComment(comment.id);
}

Example 2

deleteComment("DELETE_ALL", 11801);

See also

  • No labels