SP.RecycleBinItem.size property (sp.js)

Gets a value that specifies the size of the Recycle Bin item in bytes.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.RecycleBinItem.get_size ()

Return value

Type: Number

Remarks

Its value must be equal to or greater than 0.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/RecycleBin(recyclebinitemid)/size

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/RecycleBin(recyclebinitemid)/size

GET syntax

GET http://<sitecollection>/<site>/_api/web/RecycleBin(recyclebinitemid)/size