Microsoft provides an internal script called offscrubX.vbs (where X is the version, e.g., offscrub16.vbs for Office 2016/365).

This tool is designed for situations where a standard uninstallation through the Control Panel fails or leaves behind corrupted files and registry entries. 1. Download & Prepare the Removal Tool