Usage
m365 aad user recyclebinitem remove [options]
Description
Removes a user from the recycle bin in the current tenant
Options
| Option |
Description |
--id <id> |
ID of the deleted user. |
--confirm |
Don't prompt for confirmation. |
Examples
Removes a specific user from the recycle bin
m365 aad user recyclebinitem remove --id 59f80e08-24b1-41f8-8586-16765fd830d3
Removes a specific user from the recycle bin without confirmation prompt
m365 aad user recyclebinitem remove --id 59f80e08-24b1-41f8-8586-16765fd830d3 --confirm
Default properties
No response
Additional Info
API docs: https://learn.microsoft.com/en-us/graph/api/directory-deleteditems-delete?view=graph-rest-1.0&tabs=http
Let's specify in the docs which roles you need to remove a user:
- User Administrator
- Privileged Authentication Administrator
- Global Administrator
Usage
m365 aad user recyclebinitem remove [options]
Description
Removes a user from the recycle bin in the current tenant
Options
--id <id>--confirmExamples
Removes a specific user from the recycle bin
Removes a specific user from the recycle bin without confirmation prompt
Default properties
No response
Additional Info
API docs: https://learn.microsoft.com/en-us/graph/api/directory-deleteditems-delete?view=graph-rest-1.0&tabs=http
Let's specify in the docs which roles you need to remove a user: