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
idortitlebut not both.-t, --title [title]Title of the list to remove. Specify either
idortitlebut not both.--recycleInstead of permanently deleting, send the list to the recycle bin.
-f, --forceDon'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,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns 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'
Remove a list specified by id by sending it to the recycle bin instead of permanently removing it
m365 spo list remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 0cd891ef-afce-4e55-b836-fce03286cccf --recycle
Response
The command won't return a response on success.