You can call RemoveWorkflow to delete a workflow.

Request information

Request line

DELETE /gs/workflow/{workflowName}    HTTP/1.1

Custom request headers

None. For more information, see Common parameters.

Request body

None.

Response information

Response line

HTTP/1.1 200 OK

Custom response headers

None. For more information, see Common parameters.

Response body

None.

Examples

Sample requests (Python)

#! /usr/bin/env python
#coding=utf-8

from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.request import CommonRequest
import os
client = AcsClient(os.environ['accessKeyID'], os.environ['accessKeySecret'], 'cn-beijing')

request = CommonRequest()
request.set_accept_format('json')
request.set_method('DELETE')
request.set_protocol_type('https') # https | http
request.set_domain('cs.cn-beijing.aliyuncs.com')
request.set_version('2015-12-15')

request.add_query_param('RegionId', "cn-beijing")
request.add_header('Content-Type', 'application/json')
request.set_uri_pattern('/gs/workflow/wgs-gpu-97xfn')


response = client.do_action_with_exception(request)

print(response)