What should happen to a user’s data when their account within a team is deleted?

In a SaaS app, users each have their own account and they're all part of a team. Let's say the SaaS is a document creation/sharing app. If a user is deleted or leaves the app, what happens to "artifacts" of them being a member of the team. Documents, even if created by them, will belong to the team, but what about things like comments? What should the UI say instead of their name?