DeidentificationClient.DeleteJob Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. 
 | 
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.ResponsePublic Overridable Function DeleteJob (jobName As String, Optional cancellationToken As CancellationToken = Nothing) As ResponseParameters
- 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.ResponsePublic Overridable Function DeleteJob (jobName As String, Optional context As RequestContext = Nothing) As ResponsePublic Overridable Function DeleteJob (jobName As String, context As RequestContext) As ResponseParameters
- 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);