How can I delete a document in a document library with Pnp-Js-Core, but I need the registry to be stored in the recycle bin.


1 Answer 1


You can use the recycle method of pnp-js.

Try and modify the below code. It will send the document to recycle bin and gives you the guid of the recycle bin item.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.