<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to bulk clean the files that were moved to .unreferenced folder in Vault in Windchill</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/965920#M81685</link>
    <description>&lt;P&gt;The default option is to delete the unreferenced files.&lt;/P&gt;
&lt;P&gt;I had opened an Idea to make that setting a preference so it could be Move as the default if the company wanted.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2024 14:32:24 GMT</pubDate>
    <dc:creator>BenLoosli</dc:creator>
    <dc:date>2024-08-09T14:32:24Z</dc:date>
    <item>
      <title>How to bulk clean the files that were moved to .unreferenced folder in Vault</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/965909#M81682</link>
      <description>&lt;P&gt;Version: Windchill 12.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Case: To Clear the .unreferenced folders in windchill vault&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Previously while executing the remove unreferenced files the check box&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;STRONG&gt;Move files instead of deleting"&amp;nbsp;&lt;/STRONG&gt;was selected hence all the&amp;nbsp;unreferenced files are stored in the&amp;nbsp;.unreferenced folders. How can be do a bulk clean up of all these&amp;nbsp;.unreferenced?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 13:54:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/965909#M81682</guid>
      <dc:creator>AP_10483126</dc:creator>
      <dc:date>2024-08-09T13:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to bulk clean the files that were moved to .unreferenced folder in Vault</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/965915#M81683</link>
      <description>&lt;P&gt;I do not think that is part of Windchill functionality.&lt;/P&gt;
&lt;P&gt;My only suggestion is to write a batch script that will go into each unreferenced folder and delete any files found there. Write with an IF statement to check for files in the folder before doing the deletion. Then have the script change to the next main folder's unreferenced sub folder and repeat.&lt;/P&gt;
&lt;P&gt;I have not done this as I manually go into each folder and do the delete. I like to run the removal in Windchill a few days before I do the folder delete. I like to see how many unreferenced files we are generating. In most cases, I only run the removal on the last 10 folders on a regular basis. I will about once a year go through all of the folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 14:28:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/965915#M81683</guid>
      <dc:creator>BenLoosli</dc:creator>
      <dc:date>2024-08-09T14:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to bulk clean the files that were moved to .unreferenced folder in Vault</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/965916#M81684</link>
      <description>&lt;P&gt;Using Move files instead of deleting is a recommended practice.&lt;/P&gt;&lt;P&gt;In some releases/builds, RemoveUnreferencedFiles has removed referenced content files.&lt;/P&gt;&lt;P&gt;It is much easier to restore from the .unreferenced folder than to locate and restore the files from nightly backups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cleanup&lt;/P&gt;&lt;P&gt;First, validate there are no missing content files that might be in the .unreferenced folders.&lt;/P&gt;&lt;P&gt;windchill wt.fv.tools.WContentVerify&lt;BR /&gt;Then, search the physical file vaults for ".unreferenced" folders and delete all of them.&lt;/P&gt;&lt;P&gt;They will be recreated if remove unreferenced files is run again with the move option set.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 14:28:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/965916#M81684</guid>
      <dc:creator>mmeadows-3</dc:creator>
      <dc:date>2024-08-09T14:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to bulk clean the files that were moved to .unreferenced folder in Vault</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/965920#M81685</link>
      <description>&lt;P&gt;The default option is to delete the unreferenced files.&lt;/P&gt;
&lt;P&gt;I had opened an Idea to make that setting a preference so it could be Move as the default if the company wanted.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 14:32:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/965920#M81685</guid>
      <dc:creator>BenLoosli</dc:creator>
      <dc:date>2024-08-09T14:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to bulk clean the files that were moved to .unreferenced folder in Vault</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/965947#M81688</link>
      <description>&lt;P&gt;You can follow along with my example. Say you have a bunch of top level vault folders (you didn't mentioned if you were configured for root folders with automatic folder creation) like this:&lt;/P&gt;
&lt;P&gt;defaultcachevault1&lt;/P&gt;
&lt;P&gt;defaultcachevault2&lt;/P&gt;
&lt;P&gt;mainvault&lt;/P&gt;
&lt;P&gt;libraryvault&lt;/P&gt;
&lt;P&gt;I had a script that would look for the .unreferenced folders inside there an move those files out to another folder which I can purge at my leisure.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#!/bin/bash -x
DATE=`date +%Y%m%d`
DIR_TARGET_BASE="/&amp;lt;your data here&amp;gt;/unreferenced/$DATE"
DIR_BASE="/&amp;lt;your data here&amp;gt;"

for folder in $(find $DIR_BASE -type d -maxdepth 1 \( ! -name .snapshot \)); do
        DIR_SOURCE=${folder}/.unreferenced/
        DIR_VAULT=${folder##*/}
        DIR_TARGET="$DIR_TARGET_BASE/$DIR_VAULT/"
        echo "Moving ${DIR_SOURCE} to ${DIR_TARGET} .."
        mkdir -p "$DIR_TARGET"
        mv $DIR_SOURCE $DIR_TARGET
done
&lt;/LI-CODE&gt;
&lt;P&gt;With automatic folder creation, I think you would want to change folder depth to 2 or you can run this in each of the root folders that you have. This will put all the unreferenced files in the vaults area into another folder by date. From there you can pinch off those folders to delete.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 17:47:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/965947#M81688</guid>
      <dc:creator>avillanueva</dc:creator>
      <dc:date>2024-08-09T17:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to bulk clean the files that were moved to .unreferenced folder in Vault</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/968845#M81941</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/633730"&gt;@AP_10483126&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to follow up with you on your post to see if your question has been answered.&amp;nbsp;&lt;BR /&gt;If so, please mark the appropriate reply as the Accepted Solution.&amp;nbsp;&lt;BR /&gt;Of course, if you have more to share on your issue, please let the Community know so that we can continue to help you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 17:30:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/How-to-bulk-clean-the-files-that-were-moved-to-unreferenced/m-p/968845#M81941</guid>
      <dc:creator>anursingh</dc:creator>
      <dc:date>2024-08-29T17:30:25Z</dc:date>
    </item>
  </channel>
</rss>

