• Data Ingestion Service

dis
  1. Help Center
  2. Data Ingestion Service
  3. User Guide
  4. DIS SDK Usage Guide
  5. Deleting a Stream

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);