Share via


IndexesOperations.DeleteAsync Method

Definition

Overloads

DeleteAsync(String, String, RequestOptions)

[Protocol Method] Delete the specific version of the Index. The service returns 204 No Content if the Index was deleted successfully or if the Index does not exist.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteAsync(String, String, CancellationToken)

Delete the specific version of the Index. The service returns 204 No Content if the Index was deleted successfully or if the Index does not exist.

DeleteAsync(String, String, RequestOptions)

Source:
IndexesOperations.cs

[Protocol Method] Delete the specific version of the Index. The service returns 204 No Content if the Index was deleted successfully or if the Index does not exist.

  • 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> DeleteAsync(string name, string version, System.ClientModel.Primitives.RequestOptions options);
abstract member DeleteAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.DeleteAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function DeleteAsync (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 Index 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

DeleteAsync(String, String, CancellationToken)

Source:
IndexesOperations.cs

Delete the specific version of the Index. The service returns 204 No Content if the Index was deleted successfully or if the Index does not exist.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> DeleteAsync(string name, string version, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.DeleteAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function DeleteAsync (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 Index 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