Skip to content

search externalconnection remove

Allow the administrator to remove a specific external connection used in Microsoft Search.

Usage

m365 search externalconnection remove [options]

Options

-i, --id [id]
ID of the External Connection to remove. Specify either id or name
-n, --name [name]
Name of the External Connection to remove. Specify either id or name
--confirm
Don't prompt for confirming removing the connection
-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. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Remarks

If the command finds multiple external connections used in Microsoft Search with the specified name, it will prompt you to disambiguate which external connection it should remove, listing the discovered IDs.

Examples

Removes external connection with id MyApp

m365 search externalconnection remove --id "MyApp"

Removes external connection with name Test. Will NOT prompt for confirmation before removing.

m365 search externalconnection remove --name "Test" --confirm