---
title: "POST /v2/{+product}:removeLocalInventories"
method: POST
path: "/v2/{+product}:removeLocalInventories"
tags: ["projects"]
---

# POST /v2/{+product}:removeLocalInventories

`POST /v2/{+product}:removeLocalInventories`

Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.

## Path parameters

- `product` string, required

## Request body

- GoogleCloudRetailV2RemoveLocalInventoriesRequest — Request message for ProductService.RemoveLocalInventories method.
  - `removeTime` string, google-datetime — The time when the inventory deletions are issued. Used to prevent out-of-order updates and deletions on local inventory fields. If not provided, the internal system time will be used.
  - `allowMissing` boolean — If set to true, and the Product is not found, the local inventory removal request will still be processed and retained for at most 1 day and processed once the Product is created. If set to false, a NOT_FOUND error is returned if the Product is not found.
  - `placeIds` string[] — Required. A list of place IDs to have their inventory deleted. At most 3000 place IDs are allowed per request.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/retail.md) · [All operations](https://skmtc.net/google/apis/retail/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/retail/versions/146c67e59640/schema)
