SP.Web.recycleBinEnabled property (sp.js)

Gets or sets a value that determines whether the recycle bin is enabled for the website.

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

var value = SP.Web.get_recycleBinEnabled ()

Return value

true if the recycle bin is enabled; otherwise, false. The default value is true.

REST resource endpoint

See Web resource for more information.

Endpoint URI structure


HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/recycleBinEnabled

GET syntax

GET http://<sitecollection>/<site>/_api/web/recycleBinEnabled