Write off accounting of goods

Hello everyone
If I want to take a product from stock and use it for some purpose, after which it is not suitable for sale. I need to write off accounting. How to do it in the program? What procedure should I apply?