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
It appears that the Remove-PWFolders does not include a parameter to move deleted Documents to the Deleted Items folder. This may need to be an enhancement for a future update (to the PWPS_DAB Module).
*Note: Be careful with "regularly" deleting Folders. There is a limit on the number of Folders that can be created for a Datasource. Each time a Folder is created, a unique ID is generated and assigned to the Folder. This ID cannot be reused. So, excessive (regular) creating and deleting Folders can and will eventually get you to the limit. May take a little while to get there, but you'll get there sooner than you would organically.
Folder Limit (Count): 9,999,999 - 50, if I remember correctly.
Design Systems Administrator
ProjectWise Explorer CONNECT Edition, Version 10.00.03.453
ProjectWise Drive 2022.1, Version 2022.1.638.0
OpenRoads Designer CE 2021 Release 2, Version 10.10.21.04
OpenRoads Designer CONNECT Edition, Version 10.09.00.91
Hmmm. the Remove-PWDocuments command has a -UseSoftDelete option that will put files into the Deleted Items. That probably needs to be added to the Remove-PWFolder command too.
Until that happens you could delete the documents first with Remove-PWDocuments.
Do you know when this enhancement will be released?
I'm not even sure they'll do it. the developers will have to comment on it.