Delete stream

bucketpathstringrequired

Bucket ID.

streampathstringrequired

Stream ID within the bucket.

Stream-Incarnationheaderstring

Optional precondition: the stream's incarnation token, as a previous response's Stream-Incarnation header returned it. The delete applies only if the stream is still that incarnation; otherwise it answers 412 and deletes nothing. Without the header, the request behaves exactly as described here. A malformed value answers 400. See Stream-Incarnation.

Response

StatusMeaning
204Stream deleted.
404Stream not found.
412Stream-Incarnation did not match: the stream is another incarnation, which was not deleted. The response's Stream-Incarnation is its token.
curl -X DELETE http://127.0.0.1:4437/demo/hello

Deletion is permanent. The stream's data will be asynchronously garbage-collected after the delete is committed.