Method: deployments.packages.delete
Stay organized with collections
Save and categorize content based on your preferences.
Deletes a package
. Returns NOT_FOUND
if the matching path does not exist.
HTTP request
DELETE https://androidovertheair.googleapis.com/v1/{name=deployments/*/packages/**}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Relative resource name. For example: "deployments/deployment_x/packages/package_a"
|
Request body
The request body must be empty.
Response body
If successful, the response body is empty.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/android_partner_over_the_air
For more information, see the OAuth 2.0 Overview.
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-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThis operation deletes a specified package within a deployment using an HTTP DELETE request.\u003c/p\u003e\n"],["\u003cp\u003eIt requires providing the package's relative resource name as a path parameter in the URL.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is necessary, and a successful deletion results in an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is required using the \u003ccode\u003ehttps://www.googleapis.com/auth/android_partner_over_the_air\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This document outlines the process for deleting a package via an HTTP DELETE request. The request URL, following gRPC Transcoding syntax, uses a `name` path parameter specifying the package's relative resource name (e.g., \"deployments/deployment_x/packages/package_a\"). The request body must be empty. A successful operation results in an empty response body, while a non-existent path returns `NOT_FOUND`. Authorization requires the `https://www.googleapis.com/auth/android_partner_over_the_air` OAuth scope.\n"],null,["# Method: deployments.packages.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- [Try it!](#try-it)\n\nDeletes a [package](/android/over-the-air/reference/rest/v1/deployments.packages#Package). Returns `NOT_FOUND` if the matching path does not exist.\n\n### HTTP request\n\n`DELETE https://androidovertheair.googleapis.com/v1/{name=deployments/*/packages/**}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|---------------------------------------------------------------------------------------------|\n| `name` | `string` Relative resource name. For example: \"deployments/deployment_x/packages/package_a\" |\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/android_partner_over_the_air`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]