Skip to main content
DELETE
/
products
/
:id
curl -X DELETE https://api.kiototeteria.com/products/1 \
  -H "Authorization: Bearer <token>"
{
  "id": 1,
  "name": "Matcha Green Tea",
  "slug": "matcha-green-tea",
  "description": "Premium organic matcha green tea from Japan",
  "price": "12.99",
  "isActive": true,
  "categoryId": 1,
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:30:00Z"
}

Authentication

This endpoint requires authentication with a JWT token and ADMIN role.
Authorization: Bearer <token>

Path Parameters

id
number
required
The unique identifier of the product to delete

Response

Returns the deleted product object.
id
number
Unique identifier for the deleted product
name
string
Product name
slug
string
URL-friendly unique identifier
description
string
Product description
price
decimal
Product price
isActive
boolean
Product active status
categoryId
number
ID of the category this product belonged to
createdAt
datetime
Timestamp when the product was created
updatedAt
datetime
Timestamp when the product was last updated
curl -X DELETE https://api.kiototeteria.com/products/1 \
  -H "Authorization: Bearer <token>"
{
  "id": 1,
  "name": "Matcha Green Tea",
  "slug": "matcha-green-tea",
  "description": "Premium organic matcha green tea from Japan",
  "price": "12.99",
  "isActive": true,
  "categoryId": 1,
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:30:00Z"
}

Build docs developers (and LLMs) love