Skip to main content

deleteNotification()

deleteNotification(notificationId: string): Promise<SimpleResponse>

Defined in: packages/core/src/index.ts:1503

Delete a single notification by ID

Parameters

ParameterTypeDescription
notificationIdstringThe unique identifier of the notification to delete

Returns

Promise<SimpleResponse>

Confirmation of deletion

Throws

401 - Not authenticated

Throws

404 - Notification not found

Example

import { deleteNotification } from "@cpod/sdk";

await deleteNotification("notification-123");
console.log("Notification deleted");