Adjust the gift to an amount of zero

OR

Delete the gift

When you post to general ledger, the adjustment or deletion will be in the file.