Deleting a Stream

Initialize a DIS client instance named dic. For details, see Initializing a DIS Client.

Use the DIS SDK to delete a specified DIS stream.

//Specify the name of the stream to be deleted.
String streamName = "myStream";
DeleteStreamRequest deleteStreamRequest = new DeleteStreamRequest();
deleteStreamRequest.setStreamName(streamName);

After configuring DeleteStreamRequest, you can delete a stream by calling deleteStream.

dic.deleteStream(deleteStreamRequest);