---
title: "Delete product"
method: DELETE
path: "/ecommerce/products/{productId}"
tags: ["🛒 Ecommerce"]
---

# Delete product

`DELETE /ecommerce/products/{productId}`

The API allows an authenticated user with the role of `ADMIN` to delete a product from the system.

It expects the `productId` to be passed as a path variable.

By utilizing this API, administrators can easily remove products from the inventory or catalog.

## Response `200`

Delete product

- object
  - `data` object
    - `deletedProduct` object
      - `__v` number
      - `_id` string
      - `category` string
      - `createdAt` string
      - `description` string
      - `mainImage` string
      - `name` string
      - `owner` string
      - `price` number
      - `stock` number
      - `subImages` string[]
      - `updatedAt` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
