google.ai.generativelanguage.DeleteDocumentRequest

Request to delete a Document.

name str

Required. The resource name of the Document to delete. Example: corpora/my-corpus-123/documents/the-doc-abc

force bool

Optional. If set to true, any Chunk\ s and objects related to this Document will also be deleted.

If false (the default), a FAILED_PRECONDITION error will be returned if Document contains any Chunk\ s.