Recently I had to remove MOSS 2007 Enterprise from a Server. All I did was remove it from Add/Remove Programs from Control Panel of the Server. These are the screen shots:
Practical notes on Microsoft 365, SharePoint Online, Entra, Azure and PowerShell - from an IT consultant who's been working with Microsoft technologies since 2004.