()
| 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] |