Delete Inventory
Remove an inventory item (soft delete).
Endpointโ
DELETE /v1/products/{id}/inventory/{inventoryId}
Authenticationโ
Requires an API key with the products:write scope.
Parametersโ
| Parameter | Type | Location | Description |
|---|---|---|---|
id | integer | path | The product ID |
inventoryId | integer | path | The inventory item ID |
Responseโ
Success (204 No Content)โ
Returns no content on successful deletion.
Example Requestโ
curl -X DELETE "https://app.equipdash.com/api/v1/products/1/inventory/5" \
-H "Authorization: Bearer YOUR_API_KEY"
Errorsโ
| Status | Code | Description |
|---|---|---|
| 401 | authentication_required | No API key provided |
| 403 | insufficient_scope | API key lacks products:write scope |
| 404 | resource_not_found | Product or inventory item not found |
Important Notesโ
- Inventory items are soft-deleted (marked as deleted, not permanently removed)
- Deleted inventory items no longer appear in availability calculations
- Historical bookings referencing deleted inventory are preserved