Skip to content

New command: delete specified list #206

@waldekmastykarz

Description

@waldekmastykarz

Delete specified list

  • command: spo list remove -t|--title [title] -i|--id [id] -u|--webUrl <webUrl> --confirm
  • title: List title
  • id: List ID
  • webUrl: URL of the site where the list is located
  • confirm: Do not prompt for confirmation before deleting the list
  • specify the title or the ID to retrieve the list but not both

Delete list using:

POST <webUrl>/_api/web/lists(guid'[id]')
or
POST <webUrl>/_api/web/lists/GetByTitle('[title]')
accept: application/json;odata=nometadata
X-HTTP-Method: DELETE
x-requestdigest: 0x5AB7E...

Ensure you have access token for the web specified in the `webUrl` option.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions