I have an amazon consulting business and part of that business I buy products and sell them. I have lots of inventory I want to leverage as a loss to lower my taxes.

How can I declare this as a loss as I no longer want to continue this part of my business? Im looking for something more than the minor donation deduction. 20-30k worth.