/
deleteComment
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
, multiple selections available,
Related content
deleteComment
deleteComment
More like this
deleteComment
deleteComment
More like this
deletePage
deletePage
More like this
getLastComment
getLastComment
More like this
getComments
getComments
More like this
getCommentById
getCommentById
More like this