Delete a pipeline
Code Mode: praxis.media.pipelines.delete
HTTP: DELETE /media/v1/pipelines/{pipeline_id}
Delete a pipeline that no stream names. A stream that still has it as its pipeline_id keeps the deletion from happening, so detach it first with streams.update (pipeline_id: null) or delete the stream. Deleting is not undone and the id is not reused. Example: DELETE /media/v1/pipelines/msp_zpnqd7a2kxwg3vhr5tj4bfm6ec.
Signature
praxis.media.pipelines.delete(args:{path:{/** e.g. "msp_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ pipeline_id:string}}):Promise<{/** The deleted pipeline's id. e.g. "msp_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ id:string;/** Always media.pipeline. e.g. "media.pipeline" */ object:"media.pipeline";/** Always true. e.g. true */ deleted:true}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| pipeline_id | path | string | yes | The pipeline’s id, the id field returned by pipelines.create or pipelines.list (msp_ followed by 26 lowercase base32 characters); a pipeline of another organization answers 404. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The pipeline is deleted. |
| 404 | application/json | No pipeline with this id in your organization, or Media Streams is not released for it. |
| 409 | application/json | A stream still names this pipeline (code PIPELINE_IN_USE). Set that stream’s pipeline_id to null or delete the stream, then delete the pipeline. |