# Not able to delete sub product

**URL:** https://meta.discourse.org/t/not-able-to-delete-sub-product/293869
**Category:** Bug
**Tags:** subscriptions
**Created:** [February 2, 2024, 6:08am UTC](https://meta.discourse.org/t/not-able-to-delete-sub-product/293869 "2024-02-02T06:08:05Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Rick\_Jing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rick_jing/32/354677_2.png) [@Rick\_Jing](https://meta.discourse.org/u/Rick_Jing)
#### Post date: [February 2, 2024, 6:08am UTC](https://meta.discourse.org/t/not-able-to-delete-sub-product/293869/1 "2024-02-02T06:08:06Z")

</div>

when I tried to delete my testing sub product, nothing happened after I clicked “yes” in the confirmation window, error showed on console, the plan and sub product already set to invalid.

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/f/9/bf932135853d3f173bdc126d077a932e9b3bdcec.png)  
there’s no subs on my testing stripe account either  
 ![image](https://global.discourse-cdn.com/meta/original/4X/2/d/c/2dcbd66dffe57ced83a08cd77af437c1358db900.png)

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [February 2, 2024, 12:02pm UTC](https://meta.discourse.org/t/not-able-to-delete-sub-product/293869/2 "2024-02-02T12:02:32Z")

</div>

Heya Rick, just to confirm - did the subscription successfully get deleted on Stripe, but not get reflected in Discourse?

If you refresh the page in Discourse Subscriptions, do you see the subscription removed?

---

<div class="post-metadata">

### Author: ![Rick\_Jing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rick_jing/32/354677_2.png) [@Rick\_Jing](https://meta.discourse.org/u/Rick_Jing)
#### Post date: [February 2, 2024, 1:11pm UTC](https://meta.discourse.org/t/not-able-to-delete-sub-product/293869/3 "2024-02-02T13:11:21Z")

</div>

I’m not 100% sure for the stripe subs deletion, the picture I took is from this stripe url: [Stripe Login | Sign in to the Stripe Dashboard](http://dashboard.stripe.com/test/subscriptions)  
no subs was there and I’ve deleted the one I tested before in this page.  
on discourse I refreshed and even re-login, still nothing changed after I click “yes” in the confirmation window.  
from the console it seems error came from admin-plugins-discourse-subscriptions-products-index.js

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/d/d/fdd2202aadfc1c0b109a3830f5525fb2bcbc5889.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 5, 2024, 12:10am UTC](https://meta.discourse.org/t/not-able-to-delete-sub-product/293869/5 "2024-02-05T00:10:11Z")

</div>

Just confirming that this is helpful, we have this prioritized now and will get it sorted over the next few weeks. Thanks for raising it.

---

<div class="post-metadata">

### Author: ![Ryan\_Lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryan_lindsey/32/357914_2.png) [@Ryan\_Lindsey](https://meta.discourse.org/u/Ryan_Lindsey)
#### Post date: [February 12, 2024, 6:48pm UTC](https://meta.discourse.org/t/not-able-to-delete-sub-product/293869/6 "2024-02-12T18:48:39Z")

</div>

To add to this, I can also see the issue, the products seemed to be removed from Stripe, but not from Discourse.

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/0/9/909f320753ff8b33111a81df611f856a7a980f57.png)

```plaintext
admin-plugins-discourse-subscriptions-products-index.js:19 Uncaught TypeError: e.destroy is not a function
    at r.didConfirm (admin-plugins-discourse-subscriptions-products-index.js:19:1)
    at r.didConfirmWrapped (dialog.js:156:12)
    at B._run (backburner.js.js:840:1)
    at B._join (backburner.js.js:819:1)
    at B.join (backburner.js.js:629:1)
    at l (index.js:81:1)
    at index.js:118:1
    at d._triggerAction (d-button.js:117:25)
    at d.click (d-button.js:87:21)

```

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [March 13, 2024, 9:17am UTC](https://meta.discourse.org/t/not-able-to-delete-sub-product/293869/8 "2024-03-13T09:17:25Z")

</div>

Thanks for the report. We’ve merged the fix, you should be able to upgrade the plugin to receive the changes.

[https://github.com/discourse/discourse-subscriptions/pull/195](https://github.com/discourse/discourse-subscriptions/pull/195)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [March 16, 2024, 8:00am UTC](https://meta.discourse.org/t/not-able-to-delete-sub-product/293869/9 "2024-03-16T08:00:52Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
