Skip to main content

spo list remove

Removes the specified list

Usage

m365 spo list remove [options]

Options

-u, --webUrl <webUrl>

URL of the site where the list to remove is located.

-i, --id [id]

The ID of the list to remove. Specify either id or title but not both.

-t, --title [title]

Title of the list to remove. Specify either id or title but not both.

-f, --force

Don't prompt for confirming removing the list.

-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 list with a specific ID located in a specific site

m365 spo list remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 0cd891ef-afce-4e55-b836-fce03286cccf

Remove the list with a specific title located in a specific site.

m365 spo list remove --webUrl https://contoso.sharepoint.com/sites/project-x --title 'List 1'

Response

The command won't return a response on success.

CTRL + M