Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: viva engage community remove #6280

Open
MartinM85 opened this issue Aug 28, 2024 · 2 comments · May be fixed by #6286
Open

New command: viva engage community remove #6280

MartinM85 opened this issue Aug 28, 2024 · 2 comments · May be fixed by #6286

Comments

@MartinM85
Copy link
Contributor

MartinM85 commented Aug 28, 2024

Usage

m365 viva engage community remove [options]

Description

Removes a Viva Engage community

Options

Option Description
-i, --id [id] The id of the community. Specify either id, displayName or entraGroupId, but not multiple.
-n, --displayName [displayName] The name of the community. Specify either id, displayName or entraGroupId, but not multiple.
--entraGroupId [entraGroupId] The id of the Microsoft Entra group associated with the community. Specify either id, displayName or entraGroupId, but not multiple.
-f, --force Don't prompt for confirmation.

Examples

Remove a community specified by the community id without prompting

m365 viva engage community remove --id eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI0NzY5MTM1ODIwOSJ9 --force

Remove a community specified by name and prompt for confirmation

m365 viva engage community remove --displayName 'Software Engineers'

Remove a community specified by the Microsoft Entra group id without prompting

m365 viva engage community remove --entraGroupId 0bed8b86-5026-4a93-ac7d-56750cc099f1 --force

Default properties

No response

Additional Info

API
https://learn.microsoft.com/en-us/graph/api/community-delete?view=graph-rest-1.0&tabs=http

All the associated Microsoft 365 content, including the M365 group, the document library, OneNote notebook, and Planner plans is deleted.

@milanholemans
Copy link
Contributor

Nice suggestion, let's also add an example for the displayName. Do you want to work on it, or should we open it up?

@MartinM85
Copy link
Contributor Author

@milanholemans Example added. I can work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@MartinM85 @milanholemans @Jwaegebaert and others