Try Gemini 1.5 models, the latest multimodal models in Vertex AI, and see what you can build with up to a 2M token context window.Try Gemini 1.5 models, the latest multimodal models in Vertex AI, and see what you can build with up to a 2M token context window.
Stay organized with collections
Save and categorize content based on your preferences.
Deletes a document. Returns NOT_FOUND if the document does not exist.
HTTP request
POST https://contentwarehouse.googleapis.com/v1/{name}:delete
Path parameters
Parameters
name
string
Required. The name of the document to delete. Format: projects/{projectNumber}/locations/{location}/documents/{documentId} or projects/{projectNumber}/locations/{location}/documents/referenceId/{referenceId}. It takes the form projects/{project}/locations/{location}/documents/referenceId/{referenceid}.
Request body
The request body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-08-17 UTC."],[[["This endpoint allows you to delete a specific document by its name, with the format being `projects/{projectNumber}/locations/{location}/documents/{documentId}` or `projects/{projectNumber}/locations/{location}/documents/referenceId/{referenceId}`."],["The request body must include `requestMetadata`, which contains user meta-information for access control."],["A successful delete request returns an empty response body, while attempting to delete a non-existent document results in a `NOT_FOUND` error."],["To use this endpoint, you must have the OAuth scope `https://www.googleapis.com/auth/cloud-platform` and the `contentwarehouse.documents.delete` IAM permission."]]],[]]