MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / deleteNotification

Function deleteNotification

storage/deleteNotification.js:42–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 const storage = new Storage();
41
42 async function deleteNotification() {
43 try {
44 // Deletes the notification from the bucket
45 await storage.bucket(bucketName).notification(notificationId).delete();
46
47 console.log(`Notification ${notificationId} deleted.`);
48 } catch (error) {
49 console.error(
50 'Error executing delete notification:',
51 error.message || error
52 );
53 }
54 }
55
56 deleteNotification();
57 // [END storage_delete_bucket_notification]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected