DocumentsClientDeleteDocumentAsync Method

Deletes a Document resource.

Definition

Namespace: GenerativeAI.Clients
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Task DeleteDocumentAsync(
	string name,
	bool? force = null
)

Parameters

name  String
The resource name of the Document to delete. Required.
force  NullableBoolean  (Optional)
If set to true, any Chunk resources and objects related to this Document will also be deleted. Optional.

Return Value

Task
A task representing the asynchronous operation.

See Also