Method: products.delete
Deletes a product from your Merchant Center account.
HTTP request
DELETE https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/products/{productId}
Path parameters
Parameters |
merchantId |
string
The ID of the account that contains the product. This account cannot be a multi-client account.
|
productId |
string
The REST ID of the product.
|
Query parameters
Parameters |
feedId |
string
The Content API Supplemental Feed ID. If present then product deletion applies to the data in a supplemental feed. If absent, entire product will be deleted.
|
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/content
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 2025-02-25 UTC.
[null,null,["Last updated 2025-02-25 UTC."],[[["Permanently deletes a specified product from your Merchant Center account using the `DELETE` method."],["Requires your `merchantId`, `productId`, and optionally a `feedId` for supplemental feed deletions."],["An empty request body is necessary, and a successful deletion results in an empty response body."],["Utilizes the `https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/products/{productId}` endpoint for the operation."],["Needs authorization with the `https://www.googleapis.com/auth/content` scope."]]],["This document details the process of deleting a product from a Merchant Center account via an HTTP DELETE request. The request is made to a specific URL including `merchantId` and `productId` as path parameters. An optional `feedId` can be included as a query parameter to delete data from a supplemental feed. The request body must be empty, and a successful response will be an empty JSON object. The request needs `https://www.googleapis.com/auth/content` OAuth scope for authorization.\n"]]