- Symptom
- AttributeError: type object 'Price' has no attribute 'delete'This product cannot be deleted because it has one or more user-created prices.
- Cause
- The Prices API supports no deletion, and a Product can only be deleted while it has no prices attached.
- Fix
- Archive instead: set active to false on the price, and on the product if you want it hidden too.
- Apply
await stripe.prices.update(priceId, { active: false }); await stripe.products.update(productId, { active: false });- Affected
- Stripe Prices and Products API, all versions through 2026-09-30.endive
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders