ApiBaseDeleteAsync Method

Sends a DELETE request to the specified URL.

Definition

Namespace: GenerativeAI.Core
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
protected Task<bool> DeleteAsync(
	string url,
	CancellationToken cancellationToken = default
)

Parameters

url  String
The full URL of the API endpoint.
cancellationToken  CancellationToken  (Optional)
Token to propagate notification that the operation should be canceled.

Return Value

TaskBoolean
A boolean indicating success of the operation.

Exceptions

HttpRequestExceptionThrows upon a non-success status code.

See Also