Skip to main content

spo site recyclebinitem move

Moves items from the first-stage recycle bin to the second-stage recycle bin

Usage

m365 spo site recyclebinitem move [options]

Options

-u, --siteUrl <siteUrl>

URL of the site where the recycle bin is located.

-i, --ids [ids]

Comma separated list of item IDs. Specify either ids or all but not both.

--all

Move all first-stage recycle bin items to the second-stage recycle bin. Specify either ids or all but not both.

-f, --force

Don't prompt for confirmation.

-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

Move 2 specific items from the first-stage recycle bin to the second-stage

m365 spo site recyclebinitem move --siteUrl https://contoso.sharepoint.com/sites/sales --ids "06ca4fe4-3048-4b76-bd41-296fed4c9881,d679c17b-d7b8-429a-9307-34e1d9e631e7"

Move all first-stage recycle bin items to the second-stage

m365 spo site recyclebinitem move --siteUrl https://contoso.sharepoint.com/sites/sales --all

Response

The command won't return a response on success.

CTRL + M