Through normal processing, new backup versions replace older backup versions. There are two instances in which a process other than the normal roll-off case is required to delete an unneeded copy version. The first instance is when the number of versions specified for a copy pool is decreased. The second instance is when a copy pool is renamed or is no longer needed.
When the number of versions for a copy pool is decreased (by modifying the SMS copy pool definition), the next time that the FRBACKUP COPYPOOL command is issued for that copy pool, the unneeded versions are deleted. The target volumes that contained those versions are made available for other use.
FRDELETE COPYPOOL(cpname) BOTH ALL
When
you specify the VERSIONS keyword, the named backup versions are deleted.
If you specify the TOKEN keyword, the version with the specified token
is deleted. If you specify the ALL keyword, all backup versions are
deleted. Before a version is deleted, any outstanding FlashCopy® relationships are
withdrawn. When a Fast Replication version is deleted, the associated
catalog information data set is also deleted. FRDELETE CP(COPYPOOL1) TOKEN(FRBACKUP_JUNEDATA) DUMPONLY
Here, DFSMShsm deletes the dump copy of any fast replication backup for copy pool COPYPOOL1 associated with token FRBACKUP_JUNEDATA. Omitting DUMPONLY from this command causes both tape and DASD backups associated with this token to be deleted.
You can also specify the DASDONLY keyword of the FRDELETE command to limit your deletions to DASD backups only.
When a Fast Replication version is deleted, the associated catalog information data set is also deleted. To limit your deletions to tape backups only, while preserving any DASD backups,
For more information about FRDELETE and the parameters for deleting fast replication backups, see FRDELETE command: Deleting fast replication backup or dump versions.