Method: operations.deleteOperation
Stay organized with collections
Save and categorize content based on your preferences.
Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
.
HTTP request
DELETE https://optimization.googleapis.com/v1/{name=projects/*/operations/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
The name of the operation resource to be deleted.
|
Request body
The request body must be empty.
Response body
If successful, the response body is empty.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-15 UTC.
[null,null,["Last updated 2024-11-15 UTC."],[[["\u003cp\u003eThis document explains how to delete a long-running operation using the \u003ccode\u003eDELETE\u003c/code\u003e method, indicating the client is no longer interested in the result.\u003c/p\u003e\n"],["\u003cp\u003eThe operation is not cancelled by this request and the server might return an \u003ccode\u003eUNIMPLEMENTED\u003c/code\u003e error if it doesn't support this method.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a path parameter 'name' to identify the operation and an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eA successful deletion will result in an empty response body.\u003c/p\u003e\n"]]],["This document details the process of deleting a long-running operation via an HTTP DELETE request. The request is sent to a specific URL (`https://optimization.googleapis.com/v1/{name=projects/*/operations/*}`) defined by a path parameter named `name`, which specifies the operation resource to be deleted. The request body must be empty, and a successful response will also have an empty body. Note, deleting it only shows that the client is not interested in the operation. It will not cancel it.\n"],null,["# Method: operations.deleteOperation\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Try it!](#try-it)\n\nDeletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.\n\n### HTTP request\n\n`DELETE https://optimization.googleapis.com/v1/{name=projects/*/operations/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|------------------------------------------------------------|\n| `name` | `string` The name of the operation resource to be deleted. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty."]]