Search code examples
sharepointdirectoryrecyclesharepoint-clientobject

What is a difference between DeleteObject() and Recycle() methods for SP.Folder


Could anybody help me to understand a difference between DeleteObject() and Recycle() methods for SP.Folder?

I found this documentation, but it's not clear for me.

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.recycle.aspx


Solution

  • Delete()
    

    delete permanently without using the recycle bin.

    to move item to recycle bin use

    Recycle();
    

    http://nickgrattan.wordpress.com/2007/10/09/spfolder-splist-deleting-versus-recycling/