Skip to content

aad o365group recyclebinitem clear

Clears Microsoft 365 Groups from the recycle bin in the current tenant

Usage

m365 aad o365group recyclebinitem clear [options]

Options

--confirm
Don't prompt for confirmation to clear the recycle bin items.
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text. Default text
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Removes all deleted Microsoft 365 Groups in the tenant. Will prompt for confirmation before permanently removing groups.

m365 aad o365group recyclebinitem clear

Removes all deleted Microsoft 365 Groups in the tenant. Will NOT prompt for confirmation before permanently removing groups.

m365 aad o365group recyclebinitem clear --confirm