Yeah so you could do a rebase and remove all of the user’s commits, but their work would likely still remain in the subsequent history- integrated as changes in some way. It would be a real mess.
Cases where they are not separate (think digital signatures/signing keys) are a slightly more complicated question to answer.