Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 386 Bytes

delete-subscriber.md

File metadata and controls

14 lines (10 loc) · 386 Bytes

import { Client, Messaging } from "appwrite";

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

const messaging = new Messaging(client);

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

console.log(result);