*** id: c9e1da74-bc56-48c3-9168-f6efd964b2d4 title: unsubscribe slug: /js/reference/pubsub/client/unsubscribe description: unsubscribe method for the PubSub.Client class. max-toc-depth: 3 ---------------- ### unsubscribe * **unsubscribe**(`channels`): `Promise` List of channels from which you want to unsubscribe. #### Parameters The channels to unsubscribe from, either in the form of a string (for one channel) or an array of strings. #### Returns `Promise` #### Example ```js await pubSub.unsubscribe("my-channel"); await pubSub.unsubscribe(["chan-2", "chan-3"]); ```