Share via


DeidentificationClient.DeleteJob Method

Definition

Overloads

DeleteJob(String, CancellationToken)

Removes the record of the job from the service. Does not delete any documents.

DeleteJob(String, RequestContext)

[Protocol Method] Removes the record of the job from the service. Does not delete any documents.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

DeleteJob(String, CancellationToken)

Source:
DeidentificationClient.cs

Removes the record of the job from the service. Does not delete any documents.

public virtual Azure.Response DeleteJob(string jobName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteJob : string * System.Threading.CancellationToken -> Azure.Response
override this.DeleteJob : string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteJob (jobName As String, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

jobName
String

The name of a job.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

jobName is null.

jobName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

DeleteJob(String, RequestContext)

Source:
DeidentificationClient.cs
Source:
DeidentificationClient.cs

[Protocol Method] Removes the record of the job from the service. Does not delete any documents.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response DeleteJob(string jobName, Azure.RequestContext context = default);
public virtual Azure.Response DeleteJob(string jobName, Azure.RequestContext context);
abstract member DeleteJob : string * Azure.RequestContext -> Azure.Response
override this.DeleteJob : string * Azure.RequestContext -> Azure.Response
Public Overridable Function DeleteJob (jobName As String, Optional context As RequestContext = Nothing) As Response
Public Overridable Function DeleteJob (jobName As String, context As RequestContext) As Response

Parameters

jobName
String

The name of a job.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

jobName is null.

jobName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Examples

This sample shows how to call DeleteJob.

Uri endpoint = new Uri("<endpoint>");
TokenCredential credential = new DefaultAzureCredential();
DeidentificationClient client = new DeidentificationClient(endpoint, credential);

Response response = client.DeleteJob("job_smith_documents_1");

Console.WriteLine(response.Status);

Applies to