Delete a product
Delete a product by its id. (Simulated — the response includes `isDeleted` and `deletedOn`.)
Delete a product
curl --request DELETE \--url https://dummyjson.com/products/{id}
{"id": 0,"title": "<string>","description": "<string>","category": "<string>","price": 0,"discountPercentage": 0,"rating": 0,"stock": 0,"brand": "<string>","thumbnail": "<string>"}
Path Parameters
idintegerrequired
The product id.
Response
200 · application/json
The deleted product.
idinteger
Unique identifier.
titlestring
Product name.
descriptionstring
Product description.
categorystring
Category slug.
pricenumber
Price in USD.
discountPercentagenumber
Discount, as a percentage.
ratingnumber
Average customer rating (0–5).
stockinteger
Units in stock.
brandstring
Brand name.
thumbnailstring
Thumbnail image URL.
