Delete a product
Products
Delete Product
Soft deletes a product by setting status to discontinued. Also deactivates all associated variants.
DELETE
Delete a product
Overview
Discontinue a product by marking it as inactive. This is a soft delete—the product is hidden from active catalog queries but preserved for historical records and existing subscriptions.What Happens When You Delete a Product
- Product status changes to
discontinued - All variants are marked as
inactive - New orders cannot use this product’s SKUs
- Existing subscriptions continue unaffected
- Historical data is preserved for reporting
Common Use Cases
- End of Life: Product is no longer available from suppliers
- Catalog Cleanup: Remove products that are no longer offered
- Replacement: Old product replaced by new model
- Temporary Removal: Pause product while resolving supply issues
Before Deleting
Check for active usage:Reactivating a Discontinued Product
To bring back a discontinued product, use the Update Product endpoint:Alternative: Deactivate Specific Variants
If you only want to remove certain variants (not the whole product), update individual variant status instead:Error Handling
| Error Code | Cause | Solution |
|---|---|---|
NOT_FOUND | Product doesn’t exist | Verify product ID |
PRODUCT_HAS_ACTIVE_ORDERS | Cannot delete with pending orders | Complete or cancel orders first |
Related Endpoints
- Get Product - Check product details before deletion
- Update Product - Reactivate or modify product
- List Products - View active catalog
Authorizations
API key obtained from FlexPortal dashboard
Headers
Your tenant identifier
Path Parameters
The product ID