Archive Products With Stripe

Stripe discourages deleting products through the API.  In fact, deleting products won’t even work if a price is still active.

But they do support archiving products such that they cannot be used for anything other than reporting, etc.

Here’s how you do it in Python:

 

stripe.Product.modify(
    stripe_product_id,
    active=False,
    stripe_account=stripe_account
)

You only need to include the

stripe_account

parameter if you are acting on behalf of a "connected account."

Show Comments