SP.Folder.recycle() Method
Applies to: SharePoint Foundation 2010
Moves the list folder to the Recycle Bin and returns the identifier of the new Recycle Bin item.
var value = SP.Folder.recycle();
Return Value
Type: SP.GuidResult
Applies To
Exceptions
- [System.UnauthorizedAccessException]
The current user has insufficient permissions. Error code: -2147024891.