deleteMessage(messageID, isReply, replyID, c11nEnv)
Deletes a message from a given context.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
messageID | string | The ID of the message that needs to be deleted. | ✅ |
isReply | boolean | The flag that determines if you want to delete a message or a reply to a message. | ✅ |
replyID | string | The ID of the reply that needs to be deleted. | ❌ |
c11nEnv | object | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API removes the reply whose ID is R-101
from a
message whose ID is W-102
.
PCore.getFeedUtils().deleteMessage('W-102', true, 'R-101', 'app/primary_1')
.then(() => {
// success
}).catch(err => {
// errors
});
Previous topic APIs in the FeedUtils class Next topic getFeeds(pulseContext, feedID, feedClass, feedFilters, fetchFeedsCancelTokenSource, c11nEnv, isLoadMore)