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

SP.Folder Class

Exceptions

  • [System.UnauthorizedAccessException]
    The current user has insufficient permissions. Error code: -2147024891.

See Also

Reference

SP.Folder Methods

SP.Folder Properties

SP Namespace