AgentOptimizationJobs.Delete 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.
Delete the job and its candidate artifacts. Cancels first if non-terminal.
public virtual System.ClientModel.ClientResult Delete(string jobId, bool? force = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Delete : string * Nullable<bool> * System.Threading.CancellationToken -> System.ClientModel.ClientResult
override this.Delete : string * Nullable<bool> * System.Threading.CancellationToken -> System.ClientModel.ClientResult
Public Overridable Function Delete (jobId As String, Optional force As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ClientResult
Parameters
- jobId
- String
The ID of the job to delete.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
jobId is null.
jobId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.