Is it possible to delete Particular version history using pnp or J-query?

有帮助吗?

解决方案

You could delete version history by PowerShell script in SharePoint online. For more detailed information, refer to the article below.

SharePoint Online: Delete Version History using PowerShell CSOM.

In PnP PowerShell commands, there is no such PnP PowerShell command to delete the version history.

To use jQuery, you could get the specific version history by REST API, and then delete it. For more detailed information, refer to the post below.

https://social.msdn.microsoft.com/Forums/office/en-US/22bc1a22-d958-49d7-81a3-6009c39d88ac/delete-previous-versions-from-a-document-library-using-javascriptrest?forum=sharepointdevelopment

许可以下: CC-BY-SA归因
scroll top