@chri55tof there are two options for your question, if you wanna just void you can void, after you void transaction will be 0 and disappear from GL, values will changed, period impact on posted period at the transaction creation time, second one
Void Transactions Using Reversing Journals Preference
which will automatically creates JE and posting to current period and won’t change on historic data from system