If it increases your inventory, you can assign a 0 cost. Effectively, no GL impact.
If it reduces your inventory, I highly doubt it's possible to remove the GL impact unless the inventory value of the on hand is currently at 0 which is unlikely and absurd. You can create a JE to reverse the GL impact though.
However, why would you do that? Is there a valid reason?