Image Description Image Description

No Results

  • Support
Logo Logo v1.0
  • Basics
  • Getting started
  • Get authenticating user
  • Products
  • Create a Product
  • Update a Product
  • Delete a Product
  • Coupons
  • Create a Coupon
  • Update a Coupon
  • Delete a Coupon
  • List Coupons
  • License Keys
  • Verify a License Key
  • Redeem a License Key
  • Refund a License Key
  • Subscriptions
  • Verify a Subscription
  • Webhooks
  • Basics
  • Subscribe
  • Unsubscribe
  • Webhook Events
  • New sale
  • New lead
  • New affiliate sign-up
  • New subscription
  • Subscription cancellation

Delete a Product

Endpoint

DELETE /products/delete

Required parameters

  • id - VARCHAR(25) - The ID of the product you want to delete

Example request

  
    curl https://api.zylvie.com/products/delete \
      -X DELETE \
      -h "Authorization: Bearer e97f0aafe4884bc380c81fdb2347dc55" \
      -h "Content-Type: application/json" \
      -d '{
        "id": "6v8Obm2M"
      }'
  

Example response

  
    {
      "status": "success",
      "message": "Product deleted"
    }
  

If the product has paid transactions or active subscriptions, it will be archived instead:

  
    {
      "status": "success",
      "message": "Product archived (cannot delete product with paid transactions or active subscriptions)"
    }
  

Notes

  • If the product has been purchased (has paid transactions) or has active subscriptions, it will be archived instead of deleted to preserve transaction history.
  • Archived products are not deleted but are marked as unpublished, unlisted, and unfeatured.
  • The product must belong to your authenticated brand. Attempting to delete a product that doesn't belong to you will result in a 404 error.
  • If a product has variants with paid transactions, it will also be archived.
  • If a product is archived, the response message will indicate "Product archived (cannot delete product with paid transactions or active subscriptions)".