Forum Discussion
ChalaC
Apr 05, 2020Copper Contributor
Delete Specific file in Sharepoint Library folder
Dear All, I'm looking for some help on following commands. I tried to delete on files which is in Documents Library. Im using below commands. $siteurl="https://domain.sharepoint.com/sites/t...
Sudharsan K
Apr 05, 2020Iron Contributor
Hi,
Based on the error, it clearly shows the account you are running the PowerShell doesn't have access rights to delete the file. It can be due to following
1. Maybe the file is checked-out by the other user
2. Maybe the delete action is blocked for the user
You can check the above scenario and try deleting again or you can use -Force in your command.
Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...
Based on the error, it clearly shows the account you are running the PowerShell doesn't have access rights to delete the file. It can be due to following
1. Maybe the file is checked-out by the other user
2. Maybe the delete action is blocked for the user
You can check the above scenario and try deleting again or you can use -Force in your command.
Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...
ChalaC
Apr 05, 2020Copper Contributor
Sudharsan K I checked with mentioned suggestions. Still I getting the same error. I Can delete the file without issues from GUI using the same user.
Also the -Force also giving same error.