Items that are damaged, obsolete or expired can be written off, and items that have lost some commercial value may have their value written down.
This creates non-cash expenses that lead to a lower reported income in your profit and loss, and therefore a reduced tax liability.