Delete a product
Delete a product and its variants from the store. A subscription product with active subscribers is archived instead of deleted so its data stays available.
Delete a product and its variants from the store. A subscription product with active subscribers is archived instead of deleted so its data stays available.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
store_idstringRequiredExample:
The ID of the store that owns the product.
store_01J8Z5F8W9K8M4A7B3C2D1E0FGproduct_idstringRequiredExample:
The ID of the product to delete.
prod_01J8Z5F8W9K8M4A7B3C2D1E0FGResponses
200
Success response
application/json
401
Unauthenticated response
application/json
500
Error response
application/json
delete/api/ecommerce/v1/stores/{store_id}/products/{product_id}
DELETE /api/ecommerce/v1/stores/{store_id}/products/{product_id} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"id": "prod_01J8Z5F8W9K8M4A7B3C2D1E0FG",
"is_deleted": true,
"is_archived": false
}
}Last updated
Was this helpful?