Skip to main content

entra m365group recyclebinitem clear

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

Usage

m365 entra m365group recyclebinitem clear [options]

Alias

m365 aad m365group recyclebinitem clear [options]

Options

-f, --force

Don't prompt for confirmation to clear the recycle bin items.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--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 entra m365group recyclebinitem clear

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

m365 entra m365group recyclebinitem clear --force

Response

The command won't return a response on success.

CTRL + M