I am trying to delete a set of folders weekly. But I also want those folders deleted should list in "Deleted Items" section in ProjectWise. But unfortunately it is not working for me. Please help.
Script: Remove-PWFolder -FolderID '486359' -RemoveDocuments -RemoveFolders -ProceedWithDelete -Verbose
"So, excessive (regular) creating and deleting Folder scan and will eventually get you to the limit"
This is incorrect. Just creating the folders will bring you closer to the limit. Deleting them doesn't also bring you closer to the limit. Creating unnecessary folders to begin with is the issue.
But even then, if you created a folder every second for 8 hours a day for 247 working days it would take you 1.5 years to create 10 million folders.
I checked our datasource where the users have an an insane 550 folder template they use on every project (of which 90% are empty the entire project). The datasource is 16 years old and the highest folder ID is 610,000. Our oldest still in use datasource, at 18 years, is just at 350,000.
Unless you're creating multiple thousands of folders per day I wouldn't worry about this. If you're still worried about it, restrict who can create folders.
Brian Doherty Do you know if this will come as an ehancement?
Although this enhancement will be officially announced next release, it should be working in today's release. That is, if the 'Enable Deleted Items Folder' datasource options is set, folders deleted by the Remove-PWFolder cmdlet should be sent to the trash. Please verify.
Mark Weisman | Bentley Systems
mostly working.
If I create a folder and then put a file in it. If I delete the tree with:
Remove-PWFolder -FolderPath 'Test Folder' -RemoveDocuments -RemoveFolders -ProceedWithDelete
The folder is placed in the trash, but the file isn't. Also tested with a bunch of sub-folders with a file in the last folder, and the folder and all sub-folders appeared in Trash but not the file.