deleteComment
Description
Deletes a comment with the specified id, deletes the latest comment or deletes all comments from a given page.
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
Peacock