Link to home
Start Free TrialLog in
Avatar of rookie_b
rookie_bFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Problem deleting OneDrive folder due to multiple checked out files

Having problem trying to delete a folder from OneDrive For Business O365 due to multiple checked out files. Is there a way to force delete the folder or discard all checked out files for that folder? It is fairly large number of files, so I hope there is another way other than manually going to each file and discarding the check.
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

you need to login to the sharepoint document library and then 

If you check out a file and don’t make changes to it, or you make changes that you don’t want to keep, you can simply discard the checkout, rather than saving the file. If your organization tracks versions, a new version is created each time you check a file back into the library. By discarding the checkout, you can avoid making new versions when you haven’t made any changes to the file.

  1. Go to the library where your file is saved. (If you’re looking at a view of the library on another page, you may have to click the title of the library first. For example, you may have to click Documents first to go to the Documents library.)
  2. Select the file, or files, that you want to discard changes for, click Files and then click Discard Checkout.
  3. Click OK to finish discarding the checkout. The green arrow disappears from the file icon when the file is checked back in.


Avatar of rookie_b

ASKER

Thanks for getting ba to me! I should have been more clear in the question. I am trying to delete the entire folder, but I can't due to a very large number of checked out files. I am looking for a way to discard checkout on all these file, so I can delete the entire folder. Doing that one file at a time would be extremely time consuming. Is there a way to do that using a powershell script, or some other way that would allow me to discard all open files in that folder, so I can delete it?
ASKER CERTIFIED SOLUTION
Avatar of rookie_b
rookie_b
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial