---
title: "Delete a product"
method: DELETE
path: "/products/{product_id}"
tags: ["products"]
---

# Delete a product

`DELETE /products/{product_id}`

## Request

- Base URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1`
- URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1/products/{product_id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/docs/products/:product_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a product entry.

## Path parameters

- `product_id` string, required: The id of the product to be retrieved

## Response `200`

Product deleted successfully

- SuccessResponseSchema
  - `status` string
  - `status_code` integer: The HTTP status code. Usually 200 , 201, 204 etc
  - `message` string: A basic message describing a request was processed successfully. example: "Successfully"

## Other responses

- `400`: Bad Request
- `401`: Authentication error
- `500`: Server error

---

[API](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger.md) - [All operations](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/llms.txt) - [OpenAPI document](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/revisions/2d1d3ed96bb9?raw)
