@Bhaskar Sharma Thanks for posting in our Q&A.
For this issue, I have done the test in my lab. It works well. I will share you some information.
In my test, I want to remove "AzureAD\test2" in the administrator group and I deploy this profile to my device group. Here is my configuration:
After this profile shows successful deployment, I restart the target device and the I find that "AzureAD\test2" is removed successfully.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.