Hi @testuser7 Thanks for posting in our Q&A.
Yes, you are right. One of the unique features of Intune is the fact that it has Selective Wipe. If you simply just retire the device it will:
remove the device from the portal
remove the company data from the device (managed applications)
remove the company email profiles (managed profiles)
remove management profiles
If you Retire & Wipe it does all of that but also reset device to factory. You would use that in a case of a stolen device and/or repurposing a device for someone else to use.
In most cases you will want to just retire the device rather than wipe it.
https://learn.microsoft.com/en-us/mem/intune/remote-actions/devices-wipe?source=recommendations#windows
And secondly, will retiring task takes care of unjoining the device from on-prem AD also ??
As far as I know, retire doesn't affect the on-prem AD, just Azure AD disconnected.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.