Sign in to Company Portal for macOS.
Go to Devices and select the device you want to unenroll.
From the app toolbar, select the Devices menu > Remove.
When asked to confirm the removal, select Remove. The device is immediately removed from Intune.
After you complete these steps, you can uninstall Company Portal from your device.
See: