Delete-archive operation


The delete-archive operation deletes archived files from the IBM Tivoli Storage Manager datastore.

The following table describes the elements for the delete-archive operation:

 Adapter request elements for the delete-archive operation

The following figure shows a sample adapter request for the delete-archive operation:

Sample adapter request for the delete-archive operation

<tsm-request>
 <operation-name>delete-archive</operation-name>
 <command-request>
   <timeout-secs>120</timeout-secs>
   <command-options>
     <description>"Test Description"</description>
     <filelist>C:\filelist.txt</filelist>
     <dateformat>DD-MM-YYYY</dateformat>
     <numberformat>d,ddd,dd</numberformat>
     <timeformat>HH,MM,SS</timeformat>
     <noprompt />
   </command-options>
 </command-request>
</tsm-request>


The following figure shows the adapter response for the sample request:

Sample adapter response for the delete-archive operation

<tsm-response>
 <metadata>
   <status>success</status>
   <count>1</count>
 </metadata>
 <commands-output>
   <command-output>
     <metadata>
       <command>dsmc delete archive -description="Test Description" -        filelist=C:\filelist.txt -dateformat=2 -numberformat=2 -timeformat=2 -        noprompt</command>
       <line-count>20</line-count>
       <execution-milliseconds>3922</execution-milliseconds>
       <exit-code>0</exit-code>
       <status>success</status>
     </metadata>
     <output>
       <line index="1">IBM Tivoli Storage Manager</line>
       <line index="2">Command Line Backup/Archive Client Interface</line>
       <line index="3">  Client Version 5, Release 5, Level 0.0  </line>
       <line index="4">  Client date/time: 01-10-2008 10,46,13</line>
       <line index="5">(c) Copyright by IBM Corporation and other(s) 1990, 2007.         All Rights Reserved.</line>
       <line index="6">Node Name: D-13096</line>
       <line index="7">Session established with server SERVER1:         Linux/i386</line>
       <line index="8">  Server Version 5, Release 5, Level 0.0</line>
       <line index="9">  Server date/time: 01-10-2008 10,44,16  Last access: 01-        10-2008 10,43,03</line>
       <line index="10"> ** Successful **</line>
       <line index="12">Total number of objects deleted:          1</line>
       <line index="13">Total number of objects failed:           0</line>
       <line index="14">Total number of bytes transferred:       0  B</line>
       <line index="15">Data transfer time:                    0,00 sec</line>
       <line index="16">Network data transfer rate:            0,00 KB/sec</line>
       <line index="17">Aggregate data transfer rate:          0,00 KB/sec</line>
       <line index="18">Objects compressed by:                    0%</line>
       <line index="19">Elapsed processing time:           00,00,02</line>
     </output>
   </command-output>
 </commands-output>
</tsm-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*