You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by ajcaterino October 4, 2024
When deleting a folder using "folder.Delete()", is the folder and its files moved to recycle bin? From my testing it does not appear that it does. Is there a way, that I am missing, to make it do so? If not, is it possible to move a folder to the recycle bin using CreateCopyJobs?
The text was updated successfully, but these errors were encountered:
With files/items, Delete() deletes the item, but Recycle() moves it to the recycle bin. There isn't a Recycle method on IFolder. Have you tried doing folder.ListItemAllFields.Recycle()? You'll have to make sure the ListItemAllFields property is loaded.
Discussed in #1547
Originally posted by ajcaterino October 4, 2024
When deleting a folder using "folder.Delete()", is the folder and its files moved to recycle bin? From my testing it does not appear that it does. Is there a way, that I am missing, to make it do so? If not, is it possible to move a folder to the recycle bin using CreateCopyJobs?
The text was updated successfully, but these errors were encountered: