Skip to main content

spo roledefinition remove

Removes the role definition from the specified site

Usage

m365 spo roledefinition remove [options]

Options

-u, --webUrl <webUrl>

URL of the site from which role should be removed.

-i, --id <id>

ID of the role definition to remove.

-f, --force

Don't prompt for confirming removing the role definition.

-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

Remove the role definition from the given site

m365 spo roledefinition remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 1

Remove the role definition from the given site and don't prompt for confirmation

m365 spo roledefinition remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 1 --force

Response

The command won't return a response on success.

CTRL + M