CachingClientDeleteCachedContentAsync Method

Deletes a cached content resource asynchronously.

Definition

Namespace: GenerativeAI.Clients
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Task DeleteCachedContentAsync(
	string name,
	CancellationToken cancellationToken = default
)

Parameters

name  String
The name of the cached content resource to delete.
cancellationToken  CancellationToken  (Optional)
A token to monitor for cancellation requests.

Return Value

Task
A task representing the asynchronous delete operation.

See Also