Skip to main content
DELETE
Delete Product

Overview

Permanently delete a product from your store. This action cannot be undone.
Important: Products can only be deleted if they have no active orders. Products with orders in processing or dispatched status cannot be deleted.
Rate Limit: 10 requests per minute (intentionally limited for safety)

Endpoint

Path Parameters

string
required
UUID of the product to delete

Authentication

string
required
Your TribeMade API key (format: tb-xxxx-xxx-xxxx)

Response

string
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

Causes:
  • Product ID doesn’t exist
  • Product belongs to a different store
  • Product was already deleted
Fix: Verify the product ID is correct and belongs to your store.

400 Bad Request - Has Active Orders

Cause: Product has orders in active states (started, processing, or dispatched). Why: Deleting products with active orders would break order fulfillment and customer experience. Solution Options:
  1. Wait for orders to complete - Orders will naturally progress to delivered status
  2. Cancel the orders - Use Update Order Status API to cancel orders
  3. Deactivate instead - Use Edit Product to set is_active: false to hide the product
Consider deactivating products (is_active: false) instead of deleting if you want to preserve product history.

401 Unauthorized

or

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?

  • Maintains order references
  • Keeps sales data for analytics
  • Can be reactivated anytime
  • Historical sales data remains intact
  • Revenue reports stay accurate
  • Customer order history preserved
  • Seasonal products can be easily reactivated
  • No need to recreate product data
  • Images and details remain intact
  • 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

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?
If yes to any, use deactivation instead of deletion.
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
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
Track all deletion operations:
  • Product ID and name
  • Deletion timestamp
  • Success/failure status
  • Reason for deletion
Useful for audit trails and debugging.
Once deleted:
  • Product data cannot be recovered
  • Must recreate from scratch if needed
  • All product details, images, and metadata are lost
Consider exporting product data before bulk deletions.

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
Don’t delete when:
  • ❌ 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