Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting folders to put into recycle bin #1548

Open
jansenbe opened this issue Oct 8, 2024 Discussed in #1547 · 2 comments
Open

Deleting folders to put into recycle bin #1548

jansenbe opened this issue Oct 8, 2024 Discussed in #1547 · 2 comments
Labels
area: model 📐 Related to the core SDK models help wanted Extra attention is needed

Comments

@jansenbe
Copy link
Contributor

jansenbe commented Oct 8, 2024

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?

@jansenbe jansenbe added help wanted Extra attention is needed area: model 📐 Related to the core SDK models labels Oct 14, 2024
@LutzD-pkb
Copy link

LutzD-pkb commented Jan 7, 2025

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.

@mloitzl
Copy link
Contributor

mloitzl commented Jan 10, 2025

@jansenbe You could assign it to me, I started working on it.

Happy new Year! 🍀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: model 📐 Related to the core SDK models help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants