spo site recyclebinitem list
Lists items from recycle bin
Usage
m365 spo site recyclebinitem list [options]
Options
-u, --siteUrl <siteUrl>
URL of the site for which to retrieve the recycle bin items
--type [type]
Type of items which should be retrieved (listItems, folders, files)
--secondary
Use this switch to retrieve items from secondary recycle bin
-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 isfull
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
When type is not specified then the command will return all items in the recycle bin
Examples
Lists all files, items and folders from recycle bin for site https://contoso.sharepoint.com/site
m365 spo site recyclebinitem list --siteUrl https://contoso.sharepoint.com/site
Lists only files from recycle bin for site https://contoso.sharepoint.com/site
m365 spo site recyclebinitem list --siteUrl https://contoso.sharepoint.com/site --type files