<p>It&#8217;s possible under some circumstances to have files stored in TSM that the client won&#8217;t or can&#8217;t delete. This usually happens with TDP installations. You can force TSM to delete these backups, but do so very carefully. It&#8217;s possible to delete the wrong backup easily. Run this on a UNIX client or server.</p>
<p>First get a list of all the files a node has backed up:</p>
<pre><code>dsmadmc -id=<em>userid</em> -pass=<em>userpas</em>s "show versions <em>nodename</em> * namet=unicode" &gt; tsm_vers.out</code></pre>
<p>Edit the output file and only leave the backups that you want to delete. This command reads that input file and deletes any backups in it:</p>
<pre><code>for objid in `grep ObjId tsm_vers.out | cut -d"." -f2 | cut -d "," -f1` do 
     dsmadmc -id=<em>userid</em> -pass=<em>userpass</em> "delete object 0 $objid"
done</code></pre>
<p>Update:<br />
At some point the output of &#8220;show vers&#8221; has changed slightly, this should work with version 6.X:</p>
<pre><code>for objid in `grep ObjId tsm_vers.out | cut -d":" -f2 | cut -d "," -f1` do 
     dsmadmc -id=<em>userid</em> -pass=<em>userpass</em> "delete object 0 $objid"
done</code></pre>
{"id":277,"date":"2009-07-02T16:05:09","date_gmt":"2009-07-02T20:05:09","guid":{"rendered":"http:\/\/patrickv.info\/wordpress\/?p=277"},"modified":"2009-07-02T16:05:09","modified_gmt":"2009-07-02T20:05:09","slug":"forcing-tsm-to-delete-files","status":"publish","type":"post","link":"https:\/\/rootuser.ninja\/index.php\/2009\/07\/02\/forcing-tsm-to-delete-files\/","title":{"rendered":"Forcing TSM to delete files"},"content":{"rendered":"<p>It&#8217;s possible under some circumstances to have files stored in TSM that the client won&#8217;t or can&#8217;t delete. This usually happens with TDP installations. You can force TSM to delete these backups, but do so very carefully. It&#8217;s possible to delete the wrong backup easily. Run this on a UNIX client or server.<\/p>\n<p>First get a list of all the files a node has backed up:<\/p>\n<pre><code>dsmadmc -id=<em>userid<\/em> -pass=<em>userpas<\/em>s \"show versions <em>nodename<\/em> * namet=unicode\" &gt; tsm_vers.out<\/code><\/pre>\n<p>Edit the output file and only leave the backups that you want to delete. This command reads that input file and deletes any backups in it:<\/p>\n<pre><code>for objid in `grep ObjId tsm_vers.out | cut -d\".\" -f2 | cut -d \",\" -f1` do \n     dsmadmc -id=<em>userid<\/em> -pass=<em>userpass<\/em> \"delete object 0 $objid\"\ndone<\/code><\/pre>\n<p>Update:<br \/>\nAt some point the output of &#8220;show vers&#8221; has changed slightly, this should work with version 6.X:<\/p>\n<pre><code>for objid in `grep ObjId tsm_vers.out | cut -d\":\" -f2 | cut -d \",\" -f1` do \n     dsmadmc -id=<em>userid<\/em> -pass=<em>userpass<\/em> \"delete object 0 $objid\"\ndone<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":null,"protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,1],"tags":[],"class_list":["post-277","post","type-post","status-publish","format-standard","hentry","category-tsm-notes","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts\/277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/comments?post=277"}],"version-history":[{"count":0,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts\/277\/revisions"}],"wp:attachment":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/media?parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/categories?post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/tags?post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}