appwrite/docs/examples/1.6.x/server-deno/examples/messaging/delete-subscriber.md
2025-04-24 14:46:03 +00:00

458 B

import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts";

const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token

const messaging = new Messaging(client);

const response = await messaging.deleteSubscriber( '<TOPIC_ID>', // topicId '<SUBSCRIBER_ID>' // subscriberId );