Programmatically delete workflow cron scheduled

How can terminate and delete a cron scheduled workflow from java client?
Thanks

Yes, call TerminateWorkflowExecution API:

    WorkflowServiceStubs service = WorkflowServiceStubs.newInstance();
    service.blockingStub().terminateWorkflowExecution(...);