teams team remove¶
Removes the specified Microsoft Teams team
Usage¶
m365 teams team remove [options]
Options¶
-i, --teamId <teamId>
- The ID of the Teams team to remove
--confirm
- Don't prompt for confirming removing the specified team
-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,csv
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Remarks¶
When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This applies only to Microsoft 365 groups.
Examples¶
Removes the specified team
m365 teams team remove --teamId '00000000-0000-0000-0000-000000000000'
Removes the specified team without confirmation
m365 teams team remove --teamId '00000000-0000-0000-0000-000000000000' --confirm
More information¶
- directory resource type (deleted items): https://docs.microsoft.com/en-us/graph/api/resources/directory?view=graph-rest-1.0