Method: ragCorpora.delete

Full name: projects.locations.ragCorpora.delete

Deletes a RagCorpus.

Endpoint

deletehttps://{service-endpoint}/v1/{name}

Where{service-endpoint} is one of thesupported service endpoints.

Path parameters

namestring

Required. The name of the RagCorpus resource to be deleted. Format:projects/{project}/locations/{location}/ragCorpora/{ragCorpus}

Query parameters

forceboolean

Optional. If set to true, any RagFiles in this RagCorpus will also be deleted. Otherwise, the request will only work if the RagCorpus has no RagFiles.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance ofOperation.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-27 UTC.