()
| 31 | const livestreamServiceClient = new LivestreamServiceClient(); |
| 32 | |
| 33 | async function deleteChannel() { |
| 34 | // Construct request |
| 35 | const request = { |
| 36 | name: livestreamServiceClient.channelPath(projectId, location, channelId), |
| 37 | }; |
| 38 | |
| 39 | // Run request |
| 40 | const [operation] = await livestreamServiceClient.deleteChannel(request); |
| 41 | await operation.promise(); |
| 42 | console.log('Deleted channel'); |
| 43 | } |
| 44 | |
| 45 | deleteChannel(); |
| 46 | // [END livestream_delete_channel] |