Deleting a Stream
Use the DIS SDK to delete a specified DIS stream.
//Specify the stream to be deleted.
char *streamName = "myStream";
char *projectId = "d575b0b740e54221aeb9a165653b103d";
char *region = "southchina";
char *host = "XXX.XXX.XXX.XXX:XXX";
int ret = 0;
DISResponseInfo RspInfo = {0};
printf("===================%s Begin=======================\n",__FUNCTION__);
ret = DeleteStream(host, projectId, region, streamName, &RspInfo);
if(ret != 0)
{
printf("Delete Error: %d\r\n", ret);
printf("HttpResponseCode: %ld\r\n", RspInfo.HttpResponseCode);
printf("ErrorCode: %s\r\n", RspInfo.ErrorCode);
printf("ErrorDetail: %s\r\n", RspInfo.ErrorDetail);
}
else
{
printf("Delete stream %s success\r\n ",streamName);
printf("HttpResponseCode: %ld\r\n", RspInfo.HttpResponseCode);
}
printf("===================%s End=======================\n",__FUNCTION__);
Delete a stream by calling DeleteStream.
ret = DeleteStream(host, projectId, region, streamName, &RspInfo);
Execution Result
Information similar to the following is displayed on the console:
Delete stream myStream success HttpResponseCode: 204
Last Article: Creating a Stream Whose Source Data Type Is BLOB, JSON, or CSV
Next Article: Querying a Stream List
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.