How can I invalidate the created discount codes?

If you configured discounts in the Frequently Bought Together app, a new discount code will be created every time a bundle is added to the shopping cart using the app.

Although unlikely, it is possible that a customer kept a discount code and apply it again after you disabled the discount feature or uninstalled the app.

Please note that the discount code is only valid for the particular bundle that was created for and that it can only be used once per customer.

However, if you want to be completely sure that the discount codes cannot be applied in the future, you can invalidate them from the Shopify admin:

You can invalidate all discount codes in bulk. See the Shopify Tutorial at https://help.shopify.com/en/manual/discounts/discounts-faq#can-i-deactivate-multiple-discounts-at-the-same-time for more details.