public void deleteWorkflow(String workflowId, boolean archiveWorkflow) {
        Preconditions.checkArgument(
                StringUtils.isNotBlank(workflowId), "Workflow id cannot be blank");
        stub.removeWorkflow(
                WorkflowServicePb.RemoveWorkflowRequest.newBuilder()
                        .setWorkflodId(workflowId)
                        .setArchiveWorkflow(archiveWorkflow)
                        .build());
    }
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