{"id":5959,"date":"2019-02-25T19:39:42","date_gmt":"2019-02-25T19:39:42","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=5959"},"modified":"2021-11-16T11:44:26","modified_gmt":"2021-11-16T11:44:26","slug":"urbancode-deploy-aka-udeploy-tutorial-cleaning-up-component-versions","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/urbancode-deploy-aka-udeploy-tutorial-cleaning-up-component-versions\/","title":{"rendered":"UrbanCode Deploy aka UDeploy Tutorial &#8211; Cleaning up component versions"},"content":{"rendered":"\n<p>You cannot delete this version if it is used by:  Process History. But You can delete versions that were deployed in a process only through Artifact Cleanup. You can configure the server to reduce the number of component versions by archiving old versions. <br> You can specify<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Global cleanup settings<\/li><li>Cleanup settings for individual components, and <\/li><li>Cleanup settings for specific environments.<\/li><\/ul>\n\n\n\n<p>Specify the global cleanup settings:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"566\" height=\"289\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions.jpg\" alt=\"\" class=\"wp-image-5960\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions.jpg 566w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions-300x153.jpg 300w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/figure>\n\n\n\n<ol>\n  <li>Click Settings &gt; System Settings.<\/li>\n  <li>Under Artifact Cleanup, in the Days to Keep Versions field, specify the minimum age in days to save a component version. For example, to keep all component versions that are 5 days old or newer, specify 5. If you specify -1, all versions are saved, regardless of the setting in the Number of Versions to Keep field.<\/li>\n  <li>In the Number of Versions to Keep field, specify the minimum number of versions to keep. For example, to save the five most recent component versions, specify 5. If you specify -1, all versions are saved, regardless of the settings in the Days to Keep Versions field.<br>\n    When the server runs the cleanup, it deletes or archives all component versions that are older than the minimum age. However, the server retains at least the number of versions in the Number of Versions to Keep field.<\/li>\n  <li>In the Archive Path field, specify the path of the location on the server to write compressed versions of each version that is archived. If you do not specify a path, then the server does not store the component versions that it removes.<\/li>\n  <li>To preview the component versions to be archived the next time that an archive file is created, on the System Settings tab, click the Preview Version Cleanup link, and select a component.<\/li>\n  <li>Click Save.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"418\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions-2-1024x418.jpg\" alt=\"\" class=\"wp-image-5961\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions-2-1024x418.jpg 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions-2-300x123.jpg 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions-2-768x314.jpg 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions-2-660x270.jpg 660w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions-2.jpg 1300w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Cleaning up UDeploy component versions<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"928\" height=\"459\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions2.jpg\" alt=\"\" class=\"wp-image-5962\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions2.jpg 928w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions2-300x148.jpg 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions2-768x380.jpg 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/02\/UrbanCode-Deploy-UDeploy-Cleaning-up-component-versions2-660x326.jpg 660w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><figcaption>Cleaning up UDeploy component versions<\/figcaption><\/figure>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_51884\"><iframe loading=\"lazy\"  id=\"_ytid_63320\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_51884\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>You cannot delete this version if it is used by: Process History. But You can delete versions that were deployed in a process only through Artifact Cleanup. You can configure&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4885],"tags":[3609,2272,5198,4301],"class_list":["post-5959","post","type-post","status-publish","format-standard","hentry","category-udeploy","tag-component","tag-urbancode","tag-urbancode-deploy","tag-versions"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=5959"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5959\/revisions"}],"predecessor-version":[{"id":25524,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5959\/revisions\/25524"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=5959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=5959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=5959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}