Method: monetization.subscriptions.delete

  • Deletes a specific subscription within a given app, provided it hasn't had a base plan published.

  • Requires the package name and product ID to identify the subscription to be deleted.

  • Uses a DELETE request with no request body and returns an empty response body upon success.

  • Needs authorization with the https://www.googleapis.com/auth/androidpublisher scope.

Deletes a subscription. A subscription can only be deleted if it has never had a base plan published.

HTTP request

DELETE https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
packageName

string

Required. The parent app (package name) of the app of the subscription to delete.

productId

string

Required. The unique product ID of the subscription 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