deletePipeline method
Deletes a pipeline from the specified workspace. A pipeline cannot be deleted if it has any active executions. Wait for all executions to complete before attempting to delete the pipeline, or use CancelPipelineExecution to stop a running execution.
May throw AccessDeniedException.
May throw ConflictingOperationException.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter pipelineName :
The name of the pipeline to delete.
Parameter workspaceName :
The name of the workspace.
Implementation
Future<DeletePipelineResponse> deletePipeline({
required String pipelineName,
required String workspaceName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/workspaces/${Uri.encodeComponent(workspaceName)}/pipelines/${Uri.encodeComponent(pipelineName)}',
hostPrefix: 'api.',
exceptionFnMap: _exceptionFns,
);
return DeletePipelineResponse.fromJson(response);
}