Share via


HttpPlugin.DeleteAsync(String, CancellationToken) Method

Definition

Sends an HTTP DELETE request to the specified URI and returns the response body as a string.

[Microsoft.SemanticKernel.KernelFunction]
public System.Threading.Tasks.Task<string> DeleteAsync (string uri, System.Threading.CancellationToken cancellationToken = default);
[<Microsoft.SemanticKernel.KernelFunction>]
member this.DeleteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function DeleteAsync (uri As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

uri
String

URI of the request

cancellationToken
CancellationToken

The token to use to request cancellation.

Returns

The response body as a string.

Attributes

Applies to