You’d have to rewrite the history as to never having committed those files in the first place, yes.
And then politely ask all your coworkers to reset their working environments to the “new” head of the branch, same as the old head but not quite.
Chaos ensues. Sirens in the distance wailing.
I once did that with a Samsung powerbank I have. Daisy chained the powerbank to charge itself and a phone in sequence.
The only thing that failed afterwards was one of the cables, but suffering a loss was definitely the reason I didn’t attempt to do that again.