deleteFlow method
Deletes a flow. Before you can delete a flow, you must stop the flow.
May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.
Parameter flowArn
:
The ARN of the flow that you want to delete.
Implementation
Future<DeleteFlowResponse> deleteFlow({
required String flowArn,
}) async {
ArgumentError.checkNotNull(flowArn, 'flowArn');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/v1/flows/${Uri.encodeComponent(flowArn)}',
exceptionFnMap: _exceptionFns,
);
return DeleteFlowResponse.fromJson(response);
}