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 2025-05-08 UTC."],[[["\u003cp\u003eThis endpoint allows you to delete a specific document by its name, with the format being \u003ccode\u003eprojects/{projectNumber}/locations/{location}/documents/{documentId}\u003c/code\u003e or \u003ccode\u003eprojects/{projectNumber}/locations/{location}/documents/referenceId/{referenceId}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include \u003ccode\u003erequestMetadata\u003c/code\u003e, which contains user meta-information for access control.\u003c/p\u003e\n"],["\u003cp\u003eA successful delete request returns an empty response body, while attempting to delete a non-existent document results in a \u003ccode\u003eNOT_FOUND\u003c/code\u003e error.\u003c/p\u003e\n"],["\u003cp\u003eTo use this endpoint, you must have the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the \u003ccode\u003econtentwarehouse.documents.delete\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,[]]