Sprog

AIProjectModels.DeleteModelVersionAsync Method

Definition

Overloads

Name Description
DeleteModelVersionAsync(String, String, CancellationToken)

Removes the specified model version. Returns 200 whether the version existed or not.

DeleteModelVersionAsync(String, String, RequestOptions)

[Protocol Method] Removes the specified model version. Returns 200 whether the version existed or not.

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

DeleteModelVersionAsync(String, String, CancellationToken)

Source:
AIProjectModels.cs

Removes the specified model version. Returns 200 whether the version existed or not.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> DeleteModelVersionAsync(string name, string version, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteModelVersionAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.DeleteModelVersionAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function DeleteModelVersionAsync (name As String, version As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult)

Parameters

name
String

The name of the resource.

version
String

The version of the ModelVersion to delete.

cancellationToken
CancellationToken

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

Returns

Exceptions

name or version is null.

name or version is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

DeleteModelVersionAsync(String, String, RequestOptions)

Source:
AIProjectModels.cs

[Protocol Method] Removes the specified model version. Returns 200 whether the version existed or not.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> DeleteModelVersionAsync(string name, string version, System.ClientModel.Primitives.RequestOptions options);
abstract member DeleteModelVersionAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.DeleteModelVersionAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function DeleteModelVersionAsync (name As String, version As String, options As RequestOptions) As Task(Of ClientResult)

Parameters

name
String

The name of the resource.

version
String

The version of the ModelVersion to delete.

options
RequestOptions

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

name or version is null.

name or version is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to