Method: monetization.subscriptions.basePlans.delete
Mantieni tutto organizzato con le raccolte Salva e classifica i contenuti in base alle tue preferenze.
Consente di eliminare un piano base. Può essere eseguita solo per i piani base in bozza. Questa azione è irreversibile.
Richiesta HTTP
DELETE https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
packageName | string Obbligatorio. L'app principale (nome del pacchetto) del piano base da eliminare. |
productId | string Obbligatorio. L'abbonamento principale (ID) del piano base da eliminare. |
basePlanId | string Obbligatorio. L'ID univoco dell'offerta del piano base da eliminare. |
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta è un oggetto JSON vuoto.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/androidpublisher
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\u003cp\u003eDeletes a draft base plan for a subscription, and this action cannot be undone.\u003c/p\u003e\n"],["\u003cp\u003eRequires the package name, subscription ID, and base plan ID to identify the target base plan.\u003c/p\u003e\n"],["\u003cp\u003eUses an HTTP DELETE request with the provided URL structure and requires no request body.\u003c/p\u003e\n"],["\u003cp\u003eThe request needs authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful deletion, an empty response body is returned.\u003c/p\u003e\n"]]],["This document details the process of deleting a draft base plan via a `DELETE` HTTP request to the specified URL. The URL requires three path parameters: `packageName`, `productId`, and `basePlanId`, all of type string, to identify the base plan. The request body must be empty. Successful deletion results in an empty JSON object in the response body. This action requires the `https://www.googleapis.com/auth/androidpublisher` authorization scope.\n"],null,["- [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 base plan. Can only be done for draft base plans. This action is irreversible.\n\nHTTP request\n\n`DELETE https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|---------------|------------------------------------------------------------------------------|\n| `packageName` | `string` Required. The parent app (package name) of the base plan to delete. |\n| `productId` | `string` Required. The parent subscription (ID) of the base plan to delete. |\n| `basePlanId` | `string` Required. The unique offer ID of the base plan to delete. |\n\nRequest body\n\nThe request body must be empty.\n\nResponse body\n\nIf successful, the response body is an empty JSON object.\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]