forum/Old versions of files are not dropped even though enough copies existgit-annexhttp://git-annex.branchable.com/forum/Old_versions_of_files_are_not_dropped_even_though_enough_copies_exist/git-annexikiwiki2019-01-21T15:42:51Zcomment 1http://git-annex.branchable.com/forum/Old_versions_of_files_are_not_dropped_even_though_enough_copies_exist/comment_1_d43c3b97af1d9d2d4534b40a43567420/guzik.sergey2019-01-21T15:42:51Z2019-01-13T14:50:44Z
<p>The behaviour you described is intended, git annex preserves all versions of all files. Those old file are refered in git annex documentation as <code>unused</code>, so you can search for this term. Following are main commands:</p>
<ul>
<li><a href="https://git-annex.branchable.com/git-annex-unused/">git annex unused</a></li>
<li><a href="https://git-annex.branchable.com/git-annex-dropunused/">git annex dropunused</a></li>
<li><a href="https://git-annex.branchable.com/git-annex-drop/">git annex drop --unused</a></li>
</ul>
comment 2http://git-annex.branchable.com/forum/Old_versions_of_files_are_not_dropped_even_though_enough_copies_exist/comment_2_81e3664c6746fbeb2d76cca7160cf58a/jonas2019-01-21T15:42:51Z2019-01-13T20:21:30Z
<p>Thanks for the comment. I somehow forgot to mention that in my post, that <code>unused</code> does virtually nothing in this case.
If you stop my example after the first <code>tree</code> invocation and then in the <code>client</code> repository do <code>git annex unused</code> it tells you that there are no unused files. And hence neither <code>dropunused</code> or <code>drop --unused</code> does anything more.</p>
<p>So somehow I'm still stuck with this old version of the file which is duplicated and hence should be found and deletable, if I'm not mistaken.</p>
comment 3http://git-annex.branchable.com/forum/Old_versions_of_files_are_not_dropped_even_though_enough_copies_exist/comment_3_d5b2b68f22796c3ecd2929f47db3601e/jonas2019-01-21T15:42:51Z2019-01-13T20:40:09Z
Ok, after upgrading my repository to v7 (apparently repositories are still created as v5) git annex finds the unused versions and lets me drop them.