Required. The name of the message to delete. Format: projects/{project}/locations/{location}/instances/{instance}/users/{user}/conversations/{conversation}/messages/{message}
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
[[["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-07-14 UTC."],[[["\u003cp\u003eThis page documents how to delete a message using the \u003ccode\u003eDeleteMessage\u003c/code\u003e function, which removes both user input and AI response.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to delete a message is a \u003ccode\u003eDELETE\u003c/code\u003e request to a specified URL that includes the message's unique identifier.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a message requires the \u003ccode\u003ename\u003c/code\u003e path parameter to specify the message, following the format: \u003ccode\u003eprojects/{project}/locations/{location}/instances/{instance}/users/{user}/conversations/{conversation}/messages/{message}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and a successful deletion will result in an empty JSON object as the response.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a message requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003echronicle.messages.delete\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]