deleteJobExecutionById
Delete a specific job execution
/job-executions/{jobExecutionId}
Usage and SDK Samples
curl -X DELETE \
-H "Accept: text/plain" \
"http://localhost/data-export/job-executions/{jobExecutionId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
UUID jobExecutionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
try {
apiInstance.deleteJobExecutionById(jobExecutionId);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteJobExecutionById");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
UUID jobExecutionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
try {
apiInstance.deleteJobExecutionById(jobExecutionId);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteJobExecutionById");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
UUID *jobExecutionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // (default to null)
[apiInstance deleteJobExecutionByIdWith:jobExecutionId
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var DataExportApi = require('data_export_api');
// Create an instance of the API class
var api = new DataExportApi.DefaultApi()
var jobExecutionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.deleteJobExecutionById(jobExecutionId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class deleteJobExecutionByIdExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var jobExecutionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | (default to null)
try {
apiInstance.deleteJobExecutionById(jobExecutionId);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.deleteJobExecutionById: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$jobExecutionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
try {
$api_instance->deleteJobExecutionById($jobExecutionId);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteJobExecutionById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $jobExecutionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID |
eval {
$api_instance->deleteJobExecutionById(jobExecutionId => $jobExecutionId);
};
if ($@) {
warn "Exception when calling DefaultApi->deleteJobExecutionById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
jobExecutionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | (default to null)
try:
api_instance.delete_job_execution_by_id(jobExecutionId)
except ApiException as e:
print("Exception when calling DefaultApi->deleteJobExecutionById: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let jobExecutionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
let mut context = DefaultApi::Context::default();
let result = client.deleteJobExecutionById(jobExecutionId, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
| Name | Description |
|---|---|
| jobExecutionId* |
UUID
(uuid)
Required
|