Deleting an Oracle Radio WebSocket Channel

Send a DELETE_CHANNEL message to delete a Radio channel and notify its subscribers.

Permissions and Prerequisites

The following permissions and prerequisites apply to this operation.

RequirementValue
AuthenticationComplete the supported authentication path for the client before sending this operation. See authentication.
Radio permissionAdministrator access and radio.channel.delete.
Channel accessThe named channel must be in the authenticated user's Radio channel scope and must be eligible for deletion.
Session stateThe WebSocket connection must be open.

Request

Send the DELETE_CHANNEL message as a JSON text message.

NameData typeRequiredDefaultConstraintsDescription
typestringYesNoneMust be DELETE_CHANNEL.Identifies the channel-delete operation.
channelstringYesNoneChannel name.Name of the channel to delete.
{
  "type": "DELETE_CHANNEL",
  "channel": "team-alpha"
}

Responses

The following table lists the messages the client can receive and explains their purpose.

Message typeKindDescription
CHANNEL_DELETEDDirect responseConfirms deletion and can report the number of subscribers notified.
CHANNEL_DELETEDAsynchronous eventNotifies connected subscribers that the channel was deleted, including who deleted it and a message.
ERRORDenial or errorIndicates insufficient administrator permission, an invalid request, a channel that can't be deleted, or another processing failure.

CHANNEL_DELETED Response

The following table describes the response properties, their data types, and whether they are required.

NameData typeRequiredDescription
typestringYesResponse type. The value is CHANNEL_DELETED.
channelstringYesDeleted channel name.
deletedBystringConditionalUser that deleted the channel. Present in a subscriber notification.
subscribersNotifiedintegerConditionalNumber of subscribers notified. Present in the requester response.
messagestringConditionalDeletion message. Present in a subscriber notification.
{
  "type": "CHANNEL_DELETED",
  "channel": "team-alpha",
  "subscribersNotified": 2
}