Forum Discussion
Hello Angela,
I don't know why the files ended up in the VaultRecycleBin. It could potentially be the result of a vault migration, upgrade activity, interrupted file operations, or some cleanup process, but I have not found any documentation that explains exactly under which circumstances Aras moves files there.
One possible approach would be to extract the IDs of the files contained in the VaultRecycleBin and search the Innovator database for any remaining references to those IDs.
A modified version of the Find by ID method could be used for this. However, the original method only checks whether the supplied ID matches the id of an Item. It would need to be extended to search all relevant reference columns, including relationship source_id and related_id values, as well as Item properties that reference a File.
Search an item by id across all item types | Aras
That should provide a clearer indication of which files are still actively referenced and which ones may truly be orphaned. I would not recommend deleting the entire folder without first validating the results and creating backups of both the database and the vault.
Good luck
Michael
Thanks for your answer and tips!
Based on your ideas I used PowerShell to generate a list of all file IDs found in the VaultRecycleBin and compared them with the File Items in Aras via SQL. Good news: Not a single one of those files exists as a File Item in Innovator anymore, so I assume it's safe to delete them.
"I don't know why the files ended up in the VaultRecycleBin. It could potentially be the result of a vault migration, upgrade activity, interrupted file operations, or some cleanup process."
Well... I´ve literally done ALL of that over the years. 😄
In 2022, we moved to a new server, including the Vault Server. Back then, I didn´t fully think things through, and some existing folders ended up with incorrect permissions. It´s all well documented in the forum:
https://community.aras.com/discussions/getting-started/multiple-errors-dophysicalfiles---access-to-the-path-is-denied--when-deleting-fi/10101
I assume many of my files in the VaultRecycleBin came from that era of my glorous repairs.
I think the VaultRecycleBin is a security mechanism in Innovator. When a file is deleted, it is moved there instead of being removed immediately, providing a fallback in case something goes wrong.
I have a second Innovator instance that runs for several years know and the VaultRecycleBin is completly empty. Just like there was never an Admin that played around with the file system.