Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
heading
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
0multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

deleteComment(commentId_or_mode [,pageId])

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
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.

Parameters

...

applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

...

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

...

Return Type

Number

The number of comments deleted.

...

Code Block
languagejs
deleteComment("DELETE_ALL", 11801);

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "comment_routines" and space = currentSpace ( )
labelsarray_routines