PubNub icon

PubNub

Interact with PubNub real-time messaging platform

History → Delete Messages

AI-generated

Summary

Delete message history for a PubNub channel.

Inputs

  • channel (required) — The PubNub channel whose message history will be deleted.

Output shape

object

For each input item, returns the JSON response from the PubNub DELETE /v3/history endpoint (typically includes status and timestamp).

Examples

Example 1: Clear all stored messages in a channel.

Channel: 'my-channel'

Discussion