Delete Product
Product APIs
Delete Product
Permanently delete a product from your store
DELETE
Delete Product
Overview
Permanently delete a product from your store. This action cannot be undone.Rate Limit: 10 requests per minute (intentionally limited for safety)
Endpoint
Path Parameters
UUID of the product to delete
Authentication
Your TribeMade API key (format:
tb-xxxx-xxx-xxxx)Response
Success message: “Product deleted successfully”
Deletion Rules
✅ CAN Delete
Products with no orders or only completed/cancelled orders:- Products with no orders at all
- Products with only completed orders (delivered)
- Products with only cancelled orders
- Products with mix of completed/cancelled orders
❌ CANNOT Delete
Products with active orders:- Products with started orders (payment received)
- Products with processing orders (being prepared)
- Products with dispatched orders (shipped)
This prevents breaking order fulfillment. Wait for active orders to complete or cancel them first.
Examples
Basic Delete
Success Response
Error Responses
404 Not Found
- Product ID doesn’t exist
- Product belongs to a different store
- Product was already deleted
400 Bad Request - Has Active Orders
- Wait for orders to complete - Orders will naturally progress to delivered status
- Cancel the orders - Use Update Order Status API to cancel orders
- Deactivate instead - Use Edit Product to set
is_active: falseto hide the product
401 Unauthorized
429 Too Many Requests
Safe Deletion Workflow
Step 1: Check for Active Orders
Before deleting, check if the product has active orders:Step 2: Deactivate Instead
If deletion fails due to active orders, deactivate the product instead:Bulk Deletion
Delete multiple products with proper error handling:Alternative: Deactivate Instead of Delete
In most cases, it’s better to deactivate products rather than delete them:Why Deactivate?
Preserve History
Preserve History
- Maintains order references
- Keeps sales data for analytics
- Can be reactivated anytime
Maintain Analytics
Maintain Analytics
- Historical sales data remains intact
- Revenue reports stay accurate
- Customer order history preserved
Easy Reactivation
Easy Reactivation
- Seasonal products can be easily reactivated
- No need to recreate product data
- Images and details remain intact
Safer Operation
Safer Operation
- No risk of accidentally deleting important products
- Can’t delete products with active orders
- Reversible action
How to Deactivate
Use the Edit Product API:Best Practices
Consider deactivation first
Consider deactivation first
Before deleting, ask yourself:
- Will I need this product again? (seasonal items)
- Does it have order history I want to preserve?
- Am I just temporarily out of stock?
Respect the lower rate limit
Respect the lower rate limit
Delete endpoint is limited to 10 requests per minute (vs 20 for other operations):
- Process ~8 products per minute to be safe
- Add delays between deletion requests
- This is intentional for safety
Always handle errors gracefully
Always handle errors gracefully
Products with active orders can’t be deleted:
- Implement fallback to deactivation
- Log products that couldn’t be deleted
- Retry later or manually handle edge cases
Keep deletion logs
Keep deletion logs
Track all deletion operations:
- Product ID and name
- Deletion timestamp
- Success/failure status
- Reason for deletion
Deletion is permanent
Deletion is permanent
Once deleted:
- Product data cannot be recovered
- Must recreate from scratch if needed
- All product details, images, and metadata are lost
When to Actually Delete
Delete products when:- ✅ Product was created by mistake
- ✅ Duplicate products that need cleanup
- ✅ Test products from development
- ✅ Products with no orders and never will be sold again
- ✅ Old products that have been replaced and all orders are completed
- ❌ Product is temporarily out of stock (deactivate instead)
- ❌ Seasonal products (deactivate and reactivate later)
- ❌ Products with active orders
- ❌ Products with valuable sales history
- ❌ You might want to resell similar products later
Next Steps
Edit Product
Deactivate products instead of deleting
Create Product
Create new products
Order APIs
Manage orders programmatically
Rate Limits
Understand deletion rate limits

