Try it now and let us know what you think. Switch to the new look >>
You can return to the original look by selecting English in the language selector above.
DeleteDeliveryStream
Deletes a delivery stream and its data.
You can delete a delivery stream only if it is in ACTIVE or
DELETING state, and not in the CREATING state. While the
deletion request is in process, the delivery stream is in the DELETING
state.
To check the state of a delivery stream, use DescribeDeliveryStream.
While the delivery stream is DELETING state, the service might continue
to accept the records, but it doesn't make any guarantees with respect to delivering
the
data. Therefore, as a best practice, you should first stop any applications that are
sending records before deleting a delivery stream.
Request Syntax
{ "DeliveryStreamName": "string" }
Request Parameters
The request accepts the following data in JSON format.
- DeliveryStreamName
-
The name of the delivery stream.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[a-zA-Z0-9_.-]+Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
- ResourceInUseException
-
The resource is already in use and not available for this operation.
HTTP Status Code: 400
- ResourceNotFoundException
-
The specified resource could not be found.
HTTP Status Code: 400
Example
The following JSON example deletes a delivery stream named
exampleStreamName.
Sample Request
POST / HTTP/1.1 Host: firehose.<region>.<domain> Content-Length: <PayloadSizeBytes> User-Agent: <UserAgentString> Content-Type: application/x-amz-json-1.1 Authorization: <AuthParams> Connection: Keep-Alive X-Amz-Date: <Date> X-Amz-Target: Firehose_20150804.DeleteDeliveryStream { "DeliveryStreamName": "exampleStreamName" }
Sample Response
HTTP/1.1 200 OK x-amzn-RequestId: <RequestId> Content-Type: application/x-amz-json-1.1 Content-Length: <PayloadSizeBytes> Date: <Date>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:


