Remove-PWFolder not putting folder to recycle bin

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

Parents
  • Ajomon,

    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.


    Matthew Kovach

    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

Reply
  • Ajomon,

    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.


    Matthew Kovach

    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

Children
  • Do you know when this enhancement will be released?

  • "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.