Stay organized with collections
Save and categorize content based on your preferences.
Remove the link between the source and target documents.
HTTP request
POST https://contentwarehouse.googleapis.com/v1/{name}:delete
Path parameters
Parameters
name
string
Required. The name of the document-link to be deleted. Format: projects/{projectNumber}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}. It takes the form projects/{project}/locations/{location}/documents/{document}/documentLinks/{documentlink}.
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 link between a source and target document within the Google Cloud Content Warehouse service.\u003c/p\u003e\n"],["\u003cp\u003eThe request must be a POST request to the specified URL, including the document-link name, following the format \u003ccode\u003eprojects/{projectNumber}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires metadata about the document creator, structured under the \u003ccode\u003erequestMetadata\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful deletion of the document link results in an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003econtentwarehouse.documents.update\u003c/code\u003e on the named resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.documents.documentLinks.delete\n\nRemove the link between the source and target documents.\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.update`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]