code: public void delete(String jobId, String taskId) {
          deleteWithServiceResponseAsync(jobId, taskId).toBlocking().single().body();
      }
docs: Deletes a task from the specified job.
  When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.
  
  @param jobId The ID of the job from which to delete the task.
  @param taskId The ID of the task to delete.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws BatchErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent