Delete stream
Delete a stream. If it has builds, either move them to another stream (reassign_to_stream) or delete them (delete_builds). Deletion completes in the background. An application's last stream can't be deleted. Requires applications:write or application:write scope.
/applications/{application_id}/streams/{stream_identifier}Authorization
bearerAuth API key. Bearer authentication header of the form Bearer <token>, where <token> is your Workspace or Application API key.
In: header
Path Parameters
Application ID.
Stream ID or name.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.comapplications/aBc1234/streams/nightlies" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d @- <<'EOF'{ "reassign_to_stream": "stable"}EOF{ "message": "Stream deletion initiated successfully."}{ "message": "Unauthorized"}{ "message": "This action requires 'resource:action' scope."}{ "message": "Not found."}{ "message": "string", "errors": { "property1": [ "string" ], "property2": [ "string" ] }}