Skip to content

spo list remove

Removes the specified list

Usage

spo list remove [options]

Options

Option Description
--help output usage information
-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
--confirm Don't prompt for confirming removing the list
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Important

Before using this command, log in to a SharePoint Online site, using the spo login command.

Remarks

To remove a list, you have to first log in to a SharePoint Online site using the spo login command, eg. spo login https://contoso.sharepoint.com.

Examples

Remove the list with ID 0cd891ef-afce-4e55-b836-fce03286cccf located in site https://contoso.sharepoint.com/sites/project-x

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

Remove the list with title List 1 located in site https://contoso.sharepoint.com/sites/project-x

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