pnp / pnpjs

Fluent JavaScript API for SharePoint and Microsoft Graph REST APIs
https://pnp.github.io/pnpjs/
Other
753 stars 304 forks source link

How to keep deleted sites in to recycle bin instead of delete permanently? #2946

Closed bhoomesh-spe closed 7 months ago

bhoomesh-spe commented 7 months ago

What version of PnPjs library you are using

3.x

Minor Version Number

3.15.0

Target environment

SharePoint Framework

Additional environment details

SharePoint Online, SPFx, React

Question/Request

Hello All,

I need to keep deleted sites in to recycle bin instead of delete permanently.

I have checked that into Delete a Web link. But there is no operation which moves subsite to recycle bin.

Does anyone have any idea?

Thanks

bcameron1231 commented 7 months ago

Hi, unfortunately, the REST API does not support deleting a site and having it moved to the Recycle Bin.

bhoomesh-spe commented 7 months ago

@bcameron1231 - Thanks for the reply. Can I perform with any other approach?

bcameron1231 commented 7 months ago

Not that I'm aware of, unfortunately.

bcameron1231 commented 7 months ago

Closing this issue as answered. If you have additional questions or we did not answer your question, please open a new issue, ref this issue, and provide any additional details available. Thank you!

github-actions[bot] commented 7 months ago

This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.