Skip to main content

viva engage message remove

Removes a Viva Engage message

Usage

m365 viva engage message remove [options]

Options

--id <id>

The id of the Viva Engage message.

-f, --force

Don't prompt for confirmation.

-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.

Remarks

warning

In order to use this command, you need to grant the Microsoft Entra application used by the CLI for Microsoft 365 the permission to the Viva Engage API. To do this, execute the cli consent --service VivaEngage command.

To remove a message, you must either:

  • have posted the message yourself
  • be an administrator of the group the message was posted to or
  • be an admin of the network the message is in

Examples

Removes the Viva Engage message with the id 1239871123

m365 viva engage message remove --id 1239871123

Removes the Viva Engage message with the id 1239871123 without prompting for confirmation.

m365 viva engage message remove --id 1239871123 --force

Response

The command won't return a response on success.

CTRL + M