Stripe · api · fg-0152

Stripe has no API to delete a Price, and deleting its Product then fails

If you see AttributeError: type object 'Price' has no attribute 'delete', the cause and the fix for Stripe are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
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

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun