Hi, If you just want to remove from item ledger entries, it is not difficult, but there are actually many tables associated in the background, such as Value Entries, Posted Sales Invoice Lines, etc.

And if you set Item & Location & Variant in the Average cost calc. type, this will also affect the cost calculation.

I think it is better not to modify the historical data. You can choose to block the old item and create a new one. At least this doesn't break the consistency of the system data.
Hope this helps.
Thanks.
ZHU