• Data Ingestion Service

dis
  1. Help Center
  2. Data Ingestion Service
  3. API Reference
  4. API Description
  5. Deleting a DIS Stream

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.

URL

  • URL format

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

  • Parameter description

    None

Request

  • Example request
    DELETE https://{endpoint}:{port}/v2/6352bba7aaab443aa1d9943efc586a68/streams/stream_test
    
    Request Header:
    Content-Type: application/json
    Authorization: SDK-HMAC-SHA256
    Credential=QRUP2R3QFNAOVAWMYHZW/20180820/eu-de/test/sdk_request,
    SignedHeaders=host;x-sdk-date,  
    Signature=9d8b56b055c0e1f7a9498d881a7cb726be91b4f0cde1773b0b1557e987a480ce  
  • 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.