Skip to main content

spo site recyclebinitem remove

Permanently deletes specific items from the site recycle bin

Usage

m365 spo site recyclebinitem remove [options]

Options

-u, --siteUrl <siteUrl>

URL of the site where the recycle bin is located.

-i, --ids <ids>

Comma separated list of item IDs.

-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.

Remarks

warning

Items in the recycle bin will be permanently removed without the ability to restore them.

Examples

Permanently remove 2 specific items from the recycle bin

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

Permanently remove 2 specific items from the recycle bin and skip the confirmation prompt

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

Response

The command won't return a response on success.

CTRL + M