SharePoint bulk delete OneDrive files and folder level

Copper Contributor

Hi All,

 

I need SharePoint bulk delete OneDrive files and folder level. Cannot delete multiple files/folders in SharePoint Online in single operation. If anyone has experienced this issue in the past, please let us know details on the resolution

 

1 Reply
Hi @Karvendhan_Kuppusamy To bulk delete OneDrive files and folders in SharePoint Online, you can use PowerShell scripting. Install SharePoint Online Management Shell, connect to your SharePoint Online environment, and use the Remove-PnPFile and Remove-PnPFolder cmdlets to delete files and folders. Specify the file or folder path and use the -Recycle parameter for recursive deletion. Run the script in the SharePoint Online Management Shell to delete the specified files and folders. Remember to backup your data before executing the script.