Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | deleteComment(commentId_or_mode [,pageId]) | Package | | Alias | | Pkg Usage | |
|
Excerpt |
---|
|
Deletes a comment with the specified id, deletes the latest comment or deletes all comments from a given page. |
Deletes a comment with the specified id, deletes the latest comment or deletes all comments from a given page.
...
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
commentId_or_mode | number or string | Yes | Either the comment id (if we use the routine with only one parameter) or one of the next, otherwise: - "DELETE_LATEST" to delete the latest comment for the given page - "DELETE_ALL" to delete all the comments for the given page | page ID | Number | No | Page ID. Should be used only if the mode is "DELETE_LATEST" or "DELETE_ALL" |
|
Number
The number of comments deleted.
...
Code Block |
---|
|
deleteComment("DELETE_ALL", 11801); |
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "comment_routines" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|