Deleting a DIS Stream

Function

This API is used to delete a DIS stream after pushing or pulling data to or from the stream or if the stream does not run properly.

Before deleting a stream, you need to specify the stream name.

URI

  • URI format

    DELETE /v2/{project_id}/streams/{stream_name}

  • Parameter description

    None

Request

  • Example request
    DELETE https://{endpoint}/v2/{project_id}/streams/stream_test
  • Parameter description

    None

Response

  • If the DIS stream was successfully deleted, a 204 response with an empty response body is returned. For details about status codes, see Status Codes.
  • If the DIS stream failed to be created, identify the failure cause according to the response body and the instructions in Error Codes.

Status Code

  • Normal

    204 NOCONTENT

  • Failed

    For more information, see Error Codes.