When you hit the trashcan icon, you are probably seeing a message:
You can negate the transaction by creating a new transaction to 'Return' the inventory to the storeroom, or return the material. If ti is a storeroom item, then you should return the same quantity to the same storeroom and bin. That will net the transaction to 0
