Firebase Admin icon

Firebase Admin

Interact with Firebase Firestore, Auth, and Storage using Firebase Admin SDK

Cloud Messaging → Unsubscribe From Topic

AI-generated

Summary

Unsubscribe specified device registration tokens from a given Firebase Cloud Messaging topic within a chosen Firebase project.

Inputs

  • Project Name or ID — Select the Firebase project by name or ID, optionally using an expression.
  • Topic (required) — Specify the topic name to unsubscribe from, without the '/topics/' prefix.
  • Device Tokens (required) — Provide the device registration tokens to unsubscribe as a comma-separated string or a JSON array.

Output shape

no body — success/failure only

The operation returns no data body; it reports success or failure of the unsubscription request to Firebase Cloud Messaging.

Examples

Example 1: Unsubscribe tokens from 'news' topic in the selected Firebase project

Provide the project, enter 'news' as the topic, and list device tokens to remove from the topic subscription.

Links

Discussion