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/{document}.
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 for the deletion of a specific document using a POST request to the specified URL.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter, representing the document's unique identifier, is a required path parameter within the request URL and must follow a specific format.\u003c/p\u003e\n"],["\u003cp\u003eThe request body needs to include \u003ccode\u003erequestMetadata\u003c/code\u003e for enforcing access control, which includes information about the end user.\u003c/p\u003e\n"],["\u003cp\u003eA successful request will result in an empty response body, whereas attempting to delete a non-existent document will return a \u003ccode\u003eNOT_FOUND\u003c/code\u003e error.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003econtentwarehouse.documents.delete\u003c/code\u003e IAM permission on the document and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.documents.delete\n\nDeletes a document. Returns NOT_FOUND if the document does not exist.\n\n### HTTP request\n\n`POST https://contentwarehouse.googleapis.com/v1/{name}:delete`\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `contentwarehouse.documents.delete`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]