Closed brugh closed 3 months ago
Hi @brugh thank you for this suggestion, I think this command could be really useful together with the spo listitem batch add
and spo listitem batch set
command.
Few things to change in the spec:
Removes list items in batch
Also, let's update the specs to something like:
Name | Description |
---|---|
-u, --webUrl <webUrl> |
URL of the SharePoint site. |
-l, --listId [listId] |
ID of the list. Specify either listTitle, listId, or listUrl, but not multiple. |
-t, --listTitle [listTitle] |
Title of the list. Specify either listTitle, listId, or listUrl, but not multiple. |
--listUrl [listUrl] |
Server- or site-relative URL of the list. Specify either listTitle, listId, or listUrl, but not multiple. |
-p, --filePath [filePath] |
The absolute or relative path to a flat CSV file containing the list items. Specify either filePath or ids but not both. |
-i, --ids [ids] |
Comma separated list of list item IDs. Specify either filePath or ids but not both. |
--recycle |
Recycle the list items. Otherwise, they will be permanently deleted. |
-f, --force |
Don't prompt for confirmation. |
@brugh are you still willing to finetune this spec?
ah yes, if I can help, sure. I agreed with your suggestion which would work fine for me. What part would you like to have me finetune?
If you agree, could you implement my suggestions in the spec? Also, could you:
If you agree, could you implement my suggestions in the spec? Also, could you:
- Fine-tune your examples with real values instead of variables.
- Describe how the CSV should look just like we do in other batch commands. https://pnp.github.io/cli-microsoft365/cmd/spo/listitem/listitem-batch-set
ok, i changed the request to include your suggestions
Can I work on this?
Usage
m365 spo listitem batch remove [options]
Description
Removes items from a list in batch
Options
-u, --webUrl <webUrl>
-l, --listId [listId]
-t, --listTitle [listTitle]
--listUrl [listUrl]
-p, --filePath [filePath]
filePath
orids
but not both.-i, --ids [ids]
filePath
orids
but not both.--recycle
-f, --force
Examples
Remove a list of IDs from a list with a csv
Remove a list of IDs from a list by specifying the IDs
Remarks
A sample CSV can be found below. The first line of the CSV-file should contain the internal column names that you wish to set.
Response
The command won't return a response on success.