The article describes detailed settings for removing unnecessary data from Store House.
To open the settings window, open the Sdbman.exe application in the StoreHouse > Unnecessary data removal.

Just check the feasibility - if you activate the setting, then the database pruning will not happen. When starting the operation, the feasibility of the action with the specified parameters will be checked.

Sum up incoming balances:

If the setting is enabled, averaged invoices of incoming balances will be generated
When the setting is disabled, documents will be generated to save FIFOs in incoming balances.
The setting Ignore Alcohol Flags allows you to save receipts for items and saves the FIFO. The setting becomes available only when you activate Sum incoming balances. Please note that products with the Do not use setting for building alc. dec. not taken into account.

It is the setting that is controlled. Do not use for building alc. dec. The Alcoholic beverages setting is not taken into account when deleting data.
You can check the settings for alcoholic beverages in the SH.exe application. For this:

Go to Dictionaries> Products> Products
In the window that opens, find the desired product and double-click on it
In the product card that opens, open the Basic parameters tab

Data of goods receipts without setting Do not use for building alc. decals will be saved: documents will be generated to save the FIFO of such goods
For products with the setting Do not use for building alc. Declarations will be generated invoices of incoming balances for the total amount and the amount of balances on the date of deletion of documents.
If the setting is enabled, then for all goods, without exception, receipt invoices of incoming balances will be generated for the total quantity and the amount of balances on the date of deletion of documents without saving FIFO.