rocket
Meet
Merchant API
- the official successor to Content API for Shopping.
update
Get the latest
on new Merchant API features, bug fixes, and updates.
add_alert
Note: Content API for Shopping will be sunset on August 18, 2026.
Method: products.delete
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003ePermanently deletes a specified product from your Merchant Center account using the \u003ccode\u003eDELETE\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eRequires your \u003ccode\u003emerchantId\u003c/code\u003e, \u003ccode\u003eproductId\u003c/code\u003e, and optionally a \u003ccode\u003efeedId\u003c/code\u003e for supplemental feed deletions.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is necessary, and a successful deletion results in an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003ehttps://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/products/{productId}\u003c/code\u003e endpoint for the operation.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["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"],null,["# Method: products.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_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 product from your Merchant Center account.\n\n### HTTP request\n\n`DELETE https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/products/{productId}`\n\n### Path parameters\n\n| Parameters ||\n|--------------|----------------------------------------------------------------------------------------------------------|\n| `merchantId` | `string` The ID of the account that contains the product. This account cannot be a multi-client account. |\n| `productId` | `string` The [REST ID](/shopping-content/v2/reference/v2.1/products#id) of the product. |\n\n### Query parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. |\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 one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]