Stay organized with collections
Save and categorize content based on your preferences.
Deletes a document schema. Returns NOT_FOUND if the document schema does not exist. Returns BAD_REQUEST if the document schema has documents depending on it.
[[["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 API endpoint deletes a specified document schema.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eNOT_FOUND\u003c/code\u003e error is returned if the document schema does not exist.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eBAD_REQUEST\u003c/code\u003e error is returned if any documents depend on the schema to be deleted.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires the \u003ccode\u003econtentwarehouse.documentSchemas.delete\u003c/code\u003e IAM permission and an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDELETE\u003c/code\u003e request should be sent to the specified endpoint using the full resource name in this format: \u003ccode\u003eprojects/{project}/locations/{location}/documentSchemas/{documentschema}\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.documentSchemas.delete\n\nDeletes a document schema. Returns NOT_FOUND if the document schema does not exist. Returns BAD_REQUEST if the document schema has documents depending on it.\n\n### HTTP request\n\n`DELETE https://contentwarehouse.googleapis.com/v1/{name}`\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\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.documentSchemas.delete`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]