observationJobs.delete deletes an ObservationJob. This method will fail if the observation job is currently being used by any ObservationSource, even if not enabled.
[[["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-28 UTC."],[[["\u003cp\u003eDeletes an ObservationJob, failing if the job is in use by any ObservationSource.\u003c/p\u003e\n"],["\u003cp\u003eUses a \u003ccode\u003eDELETE\u003c/code\u003e HTTP request with a specific URL structure: \u003ccode\u003ehttps://apim.googleapis.com/v1alpha/{name=projects/*/locations/*/observationJobs/*}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequires a \u003ccode\u003ename\u003c/code\u003e path parameter in the specified format: \u003ccode\u003eprojects/{project}/locations/{location}/observationJobs/{observationJob}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for this operation must be empty.\u003c/p\u003e\n"],["\u003cp\u003eUpon success, returns an \u003ccode\u003eOperation\u003c/code\u003e resource, and requires \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope and \u003ccode\u003eapim.observationJobs.delete\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.observationJobs.delete\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- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n\nobservationJobs.delete deletes an ObservationJob. This method will fail if the observation job is currently being used by any ObservationSource, even if not enabled.\n\n### HTTP request\n\n`DELETE https://apim.googleapis.com/v1alpha/{name=projects/*/locations/*/observationJobs/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\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 contains an instance of [Operation](/apigee/docs/reference/apis/apim/rest/v1alpha/projects.locations.operations#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `apim.observationJobs.delete`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]