public List<String> getRunningWorkflow(String workflowName, @Nullable Integer version) {
        Preconditions.checkArgument(
                StringUtils.isNotBlank(workflowName), "Workflow name cannot be blank");

        WorkflowServicePb.GetRunningWorkflowsResponse workflows =
                stub.getRunningWorkflows(
                        WorkflowServicePb.GetRunningWorkflowsRequest.newBuilder()
                                .setName(workflowName)
                                .setVersion(version == null ? 1 : version)
                                .build());
        return workflows.getWorkflowIdsList();
    }
Removes a workflow from the system

@param workflowId the id of the workflow to be deleted
@param archiveWorkflow flag to indicate if the workflow should be archived before deletion
grpc-client/src/main/java/com/netflix/conductor/client/grpc/WorkflowClient.java