CachingClientDeleteCachedContentAsync Method
Deletes a cached content resource asynchronously.
Namespace: GenerativeAI.ClientsAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public Task DeleteCachedContentAsync(
string name,
CancellationToken cancellationToken = default
)
- name String
- The name of the cached content resource to delete.
- cancellationToken CancellationToken (Optional)
- A token to monitor for cancellation requests.
TaskA task representing the asynchronous delete operation.