====== TMSS10VolumeDelete Examples ======
Files needed to delete [[object:volume|Volumes]] from a defined list from nominated [[object:customer|Customer-ID]] and [[object:media|Media-ID]] using [[cli:tmss10volumedelete|TMSS10VolumeDelete]].
===== Examples =====
==== Delete Volumes From CSV List ====
Delete [[object:volume|Volumes]] from TapeTrack from a CSV list, using set [[object:customer|Customer-ID]] and [[object:media|Media-ID]]
Files Required:
* CSV file of required [[object:volume|Volumes]]
* Configuration file
* TTIDEF definition file
==== CSV File ====
CSV File **volumes.csv**
100011L4
100012L4
100023L4
100025L4
100026L4
==== TTIDEF File ====
TTIDEF File **default.ttidef**
Set CSV delimiter to comma, [[object:customer|Customer-ID]] to US01, [[object:media|Media-ID]] to LTO and extract Barcode value from column one.
SetCSVDelimiter(",");
SetLiteral(CUSTOMER, "US04");
SetLiteral(MEDIA, "LTO");
Extract(BARCODE, 1, 8, 0);
==== Configuration File ====
Load Scanfile of [[object:volume|Volume-ID's]], traverse input file. \\
If [[object:volume|Volume-ID]] is present in the Scanfile delete [[object:volume|Volume]], if not skip [[object:volume|Volume]].
Configuration File **master.cfg**
report =
{
format = "csv";
};
traversal =
{
scanfile= { file="default.ttidef"; };
customer =
(
{
id="*";
media =
(
{
id="*";
volume =
(
{
id="*";
scanfile = true;
skip=false;
},
{
id="*";
skip=true;
}
);
}
);
}
);
};
==== Command Line Syntax ====
Delete all [[object:volume|Volumes]] in volumes.csv from [[object:customer|Customer-ID]] US01 and [[object:media|Media-ID]] LTO
TMSS10VolumeDelete -S user:-password@server -c master.cfg -l -r * < volumes.csv
{{tag>technote cli}}