<?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: Purge Script in Vault Forum</title>
    <link>https://forums.autodesk.com/t5/vault-forum/purge-script/m-p/10025457#M26204</link>
    <description>&lt;P&gt;I have the same question. As I understand there ist no possibility to combine the rules with the rules of files which have a lifecycle. For example: I want to keep the last 5 versions of files which are younger than 60 days and have the state "in progress". But because these files have a lifecycle only the first and last Version will not be deleted. Is there a possibility to combine the rules of the lifecycle definition and the additional settings? Thanks.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4217502"&gt;@tapani.kuikka&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello!, i am replying to this old thread, as i have more questions on the purge switches in the script or in the ADMS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does the switch "Purge versions not controlled by lifecycles" do?, is it only applying the purge to the files that are outside of any lifecycle in Vault?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the "Purge versions not controlled by lifecycles" -check is checked, only then you can select "Versions except latest", "Versions older than days", "Exclude versions where comment contains" -options, so does this mean that we cannot purge by those manually set rules files that are controlled by a lifecycle?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again when a purge is run without the "Purge versions not controlled by lifecycles" -checkbox active, then the Vault will purge files that are controlled by a lifecycle, and only will look the lifecycle rules of versions kept etc. ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This behavior is the same for the purge script vs. manual purge files from ADMS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if this is right there is no way of controlling how many versions are kept from files that are in a lifecycle? For example i have a non-released state in my lifecycle, and it has controlled versions "first and last", and those are kept when Vault is purged, no matter what switches i have active (KEEPVERS5, Exclude comments, etc)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that i really would like to keep more than just "first and last" version from my files in non-released lifecycle state, but i have not found any way to purge in a manner that would allow that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jan 2021 21:42:30 GMT</pubDate>
    <dc:creator>jentsch</dc:creator>
    <dc:date>2021-01-23T21:42:30Z</dc:date>
    <item>
      <title>Purge Script</title>
      <link>https://forums.autodesk.com/t5/vault-forum/purge-script/m-p/8355632#M26200</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I prepared simple script for purging Vault and added it to windows task scheduler (just like backup script)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"C:\Program Files\Autodesk\ADMS 2018\ADMS Console\Connectivity.ADMSConsole.exe" -Opurge -N"Projects" -KEEPVERS1 -MINAGE21 -VUAdmin_name -VPAdmin_password -L"\\10.2.0.138\Kopie zapasowe\Vault\Vault_Purge.log"&lt;/PRE&gt;&lt;P&gt;In place of Admin_name and Admin_password i just put my login and password to ADMSC&amp;nbsp; (no spaces and quote marks, just like typed above). Vault name is&amp;nbsp;quote marks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result in log is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;9/21/2018 10:00:08 PM ==== DataManagement.Common.Logging: DISABLED ====
9/21/2018 10:00:08 PM ==== Logging initiated: Core server version 23.3.21.0 ====
9/21/2018 10:00:08 PM  
9/21/2018 10:00:08 PM -Opurge -N"Rfmah" -KEEPVERS1 -MINAGE21 -EXCLCMTDo not purge -VU[username] -VP[password] -L"\\Server1\Backup\Vault\Vault_Purge.log" 
9/21/2018 10:00:09 PM Connectivity.Request.Common.RequestLibrary - RequestRuntimeStop()
9/21/2018 10:00:09 PM Connectivity.Request.Vault.RequestLibrary - RequestRuntimeStop()
9/21/2018 10:00:09 PM Connectivity.Request.Foundation.RequestLibrary - RequestRuntimeStop()
9/21/2018 10:00:09 PM Connectivity.Request.Document.RequestLibrary - RequestRuntimeStop()&lt;/PRE&gt;&lt;P&gt;The purge isn't performed. What may be the possible reason ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;ZZ&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 11:16:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-forum/purge-script/m-p/8355632#M26200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T11:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Purge Script</title>
      <link>https://forums.autodesk.com/t5/vault-forum/purge-script/m-p/8355664#M26201</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to write the log file to a location on the machine itself (eg. C:\Temp\Purgelog.log). The ADMS Console probably hasn't got permissions on the network drive because out of the box ADMS is using the default local AutodeskVault account.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 11:30:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-forum/purge-script/m-p/8355664#M26201</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2018-10-24T11:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Purge Script</title>
      <link>https://forums.autodesk.com/t5/vault-forum/purge-script/m-p/8383786#M26202</link>
      <description>&lt;P&gt;Hi @Anonymous, thanks for posting to the Vault forums.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you had any success with the suggestions from &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/75495"&gt;@psaarloos&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a few additional thoughts of things to consider and try from your end. First, it looks like your purge script is executed successfully from the log file snippet you provided. However, you claim that the desired files are not actually purged from your Vault. I wonder if there are &lt;A href="http://help.autodesk.com/view/VAULT/2018/ENU/?guid=GUID-F1D90904-9660-42F8-AB25-02A7D863008E" target="_blank"&gt;purge version rules&lt;/A&gt; or exceptions you are running into which are excluding files from being purged. I would suggest you look into &lt;A href="https://knowledge.autodesk.com/support/vault-products/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/Vault-Admin/files/GUID-379CAADD-69B5-4408-B402-F421208DD574-htm.html" target="_blank"&gt;purging a Vault&lt;/A&gt; from the Data Management Server Console (ADMS) interface first to get the proper rules and exceptions before attempting to purge from a command script. Specifically, I would recommend you also look at the "UNCONTROLLED" switch in the &lt;A href="https://knowledge.autodesk.com/support/vault-products/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/Vault-Admin/files/GUID-AB0DF56B-9A65-42AC-9D3F-DF47ADCA7C37-htm.html" target="_blank"&gt;purge script switch list&lt;/A&gt;. This UNCONTROLLED switch corresponds to the "Purge versions not controlled by lifecycles" checkbox in the Purge Files dialog in the ADMS when trying to purge a Vault.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PurgeUncontrolled.png" style="width: 695px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/566332iFC43D94F8DA87AC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="PurgeUncontrolled.png" alt="PurgeUncontrolled.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if you have questions.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 18:02:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-forum/purge-script/m-p/8383786#M26202</guid>
      <dc:creator>reidmatthew</dc:creator>
      <dc:date>2018-11-06T18:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Purge Script</title>
      <link>https://forums.autodesk.com/t5/vault-forum/purge-script/m-p/8806505#M26203</link>
      <description>&lt;P&gt;Hello!, i am replying to this old thread, as i have more questions on the purge switches in the script or in the ADMS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does the switch "Purge versions not controlled by lifecycles" do?, is it only applying the purge to the files that are outside of any lifecycle in Vault?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the "Purge versions not controlled by lifecycles" -check is checked, only then you can select "Versions except latest", "Versions older than days", "Exclude versions where comment contains" -options, so does this mean that we cannot purge by those manually set rules files that are controlled by a lifecycle?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again when a purge is run without the "Purge versions not controlled by lifecycles" -checkbox active, then the Vault will purge files that are controlled by a lifecycle, and only will look the lifecycle rules of versions kept etc. ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This behavior is the same for the purge script vs. manual purge files from ADMS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if this is right there is no way of controlling how many versions are kept from files that are in a lifecycle? For example i have a non-released state in my lifecycle, and it has controlled versions "first and last", and those are kept when Vault is purged, no matter what switches i have active (KEEPVERS5, Exclude comments, etc)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is that i really would like to keep more than just "first and last" version from my files in non-released lifecycle state, but i have not found any way to purge in a manner that would allow that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 05:35:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-forum/purge-script/m-p/8806505#M26203</guid>
      <dc:creator>tapani.kuikka</dc:creator>
      <dc:date>2019-05-22T05:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Purge Script</title>
      <link>https://forums.autodesk.com/t5/vault-forum/purge-script/m-p/10025457#M26204</link>
      <description>&lt;P&gt;I have the same question. As I understand there ist no possibility to combine the rules with the rules of files which have a lifecycle. For example: I want to keep the last 5 versions of files which are younger than 60 days and have the state "in progress". But because these files have a lifecycle only the first and last Version will not be deleted. Is there a possibility to combine the rules of the lifecycle definition and the additional settings? Thanks.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4217502"&gt;@tapani.kuikka&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello!, i am replying to this old thread, as i have more questions on the purge switches in the script or in the ADMS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does the switch "Purge versions not controlled by lifecycles" do?, is it only applying the purge to the files that are outside of any lifecycle in Vault?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the "Purge versions not controlled by lifecycles" -check is checked, only then you can select "Versions except latest", "Versions older than days", "Exclude versions where comment contains" -options, so does this mean that we cannot purge by those manually set rules files that are controlled by a lifecycle?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again when a purge is run without the "Purge versions not controlled by lifecycles" -checkbox active, then the Vault will purge files that are controlled by a lifecycle, and only will look the lifecycle rules of versions kept etc. ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This behavior is the same for the purge script vs. manual purge files from ADMS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if this is right there is no way of controlling how many versions are kept from files that are in a lifecycle? For example i have a non-released state in my lifecycle, and it has controlled versions "first and last", and those are kept when Vault is purged, no matter what switches i have active (KEEPVERS5, Exclude comments, etc)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that i really would like to keep more than just "first and last" version from my files in non-released lifecycle state, but i have not found any way to purge in a manner that would allow that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 21:42:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-forum/purge-script/m-p/10025457#M26204</guid>
      <dc:creator>jentsch</dc:creator>
      <dc:date>2021-01-23T21:42:30Z</dc:date>
    </item>
  </channel>
</rss>

