Method: monetization.subscriptions.basePlans.delete
Stay organized with collections
Save and categorize content based on your preferences.
Deletes a base plan. Can only be done for draft base plans. This action is irreversible.
HTTP request
DELETE https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
packageName |
string
Required. The parent app (package name) of the base plan to delete.
|
productId |
string
Required. The parent subscription (ID) of the base plan to delete.
|
basePlanId |
string
Required. The unique offer ID of the base plan to delete.
|
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher
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 2025-05-21 UTC.
[null,null,["Last updated 2025-05-21 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,["# Method: monetization.subscriptions.basePlans.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 base plan. Can only be done for draft base plans. This action is irreversible.\n\n### HTTP 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\n### Path 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\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]