![]() |
![]() |
Use this command to delete a backup set.
When the server creates a backup set, the retention period assigned to the backup set determines how long the backup set remains in the database. When that date passes, the server automatically deletes the backup set when expiration processing runs. However, you can also manually delete the client's backup set from the server before it is scheduled to expire by using the DELETE BACKUPSET command. After a backup set is deleted, the volumes return to scratch status if TSM acquired them as scratch volumes. Scratch volumes associated with a device type of FILE are deleted.
Privilege Class
If the REQSYSAUTHOUTFILE server option is set to YES (the default), the administrator must have system privilege. If the REQSYSAUTHOUTFILE server option is set to NO, the administrator must have system privilege or policy privilege for the domain to which the client node is assigned.
Syntax
.-,---------. .-,---------------. V | V | >>-DELete BACKUPSET----node_name-+----backup_set_name-+---------> >--+--------------------+--+--------------------+---------------> '-BEGINDate--=--date-' '-BEGINTime--=--time-' >--+------------------+--+------------------+-------------------> '-ENDDate--=--date-' '-ENDTime--=--time-' >--+--------------------------------+---------------------------> '-WHERERETention--=--+-days----+-' '-NOLimit-' >--+----------------------------------+-------------------------> '-WHEREDESCription--=--description-' .-Preview--=--No------. >--+---------------------+------------------------------------->< '-Preview--=--+-No--+-' '-Yes-'
Parameters
You can specify the date by using one of the values below:
Value | Description | Example |
---|---|---|
MM/DD/YYYY | A specific date | 09/15/1999 |
TODAY | The current date | TODAY |
TODAY+days or +days | The current date plus days specified. | TODAY +3 or +3. |
TODAY-days or -days | The current date minus days specified. | TODAY -3 or -3. |
You can specify the data by using one of the values below:
Value | Description | Example |
---|---|---|
HH:MM:SS | A specific time | 10:30:08 |
NOW | The current time | NOW |
NOW+HH:MM or +HH:MM | The current time plus hours and minutes specified | NOW+02:00 or +02:00. |
NOW-HH:MM or -HH:MM | The current time minus hours and minutes specified | NOW-02:00 or -02:00. |
You can specify the date by using one of the values below:
Value | Description | Example |
---|---|---|
MM/DD/YYYY | A specific date | 09/15/1999 |
TODAY | The current date | TODAY |
TODAY+days or +days | The current date plus days specified. | TODAY +3 or +3. |
TODAY-days or -days | The current date minus days specified. | TODAY -3 or -3. |
You can specify the date by using one of the values below:
Value | Description | Example |
---|---|---|
HH:MM:SS | A specific time | 10:30:08 |
NOW | The current time | NOW |
NOW+HH:MM or +HH:MM | The current time plus hours and minutes on the specified end date | NOW+02:00 or +02:00. |
NOW-HH:MM or -HH:MM | The current time minus hours and minutes on the specified end date | NOW-02:00 or -02:00. |
Examples
Task
Delete backup set named PERS_DATA.3099 that belongs to client node JANE. The backup set was generated on 11/19/1998 at 10:30:05.
delete pers_data.3099 jane mybackupset.3099 begindate=11/19/1998 begintime=10:30:05
Related Commands
Table 68. Commands Related to DELETE BACKUPSET
Command | Description |
---|---|
DEFINE BACKUPSET | Defines a previously generated backup set to a server. |
DELETE BACKUPSET | Deletes a backup set. |
GENERATE BACKUPSET | Generates a backup set of a client's data. |
QUERY BACKUPSET | Displays backup sets. |
QUERY BACKUPSETCONTENTS | Displays contents contained in backup sets. |
UPDATE BACKUPSET | Updates a retention value associated with a backup set. |