Method: monetization.onetimeproducts.batchDelete

  • This page details how to delete one or more one-time products using a batch delete request.

  • The request uses a POST method to a specific URL that includes the package name.

  • The request body contains a list of individual delete requests, each specifying the package name and product ID to be deleted.

  • A successful response returns an empty JSON object.

  • The authorization scope https://www.googleapis.com/auth/androidpublisher is required.

Deletes one or more one-time products.

HTTP request

POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchDelete

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
packageName

string

Required. The parent app (package name) for which the one-time products should be deleted. Must be equal to the packageName field on all the OneTimeProduct resources.

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (DeleteOneTimeProductRequest)
    }
  ]
}
Fields
requests[]

object (DeleteOneTimeProductRequest)

Required. A list of delete requests of up to 100 elements. All requests must delete different one-time products.

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

DeleteOneTimeProductRequest

Request message for deleting a one-time product.

JSON representation
{
  "packageName": string,
  "productId": string,
  "latencyTolerance": enum (ProductUpdateLatencyTolerance)
}
Fields
packageName

string

Required. The parent app (package name) of the one-time product to delete.

productId

string

Required. The one-time product ID of the one-time product to delete.

latencyTolerance

enum (ProductUpdateLatencyTolerance)

Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.