Use the obsOperandList subclause used to specify which criteria are used to mark backups as obsolete.
Using both RECOVERY WINDOW and REDUNDANCY in a single REPORT OBSOLETE or DELETE OBSOLETE command is not supported.
RECOVERY WINDOW OFintegerDAYS
Specifies that RMAN should report as obsolete those backup sets and image copies that are not needed to recover the database to any point within the last integer days.
See Also:CONFIGURE for an explanation of the recovery window
Specifies the minimum level of redundancy considered necessary for a backup set or image copy to be obsolete.
A datafile copy is obsolete if there are at least integer more recent backup sets or image copies of this file; a datafile backup set is obsolete if there are at least integer more recent backup sets or image copies of each datafile contained in the backup set. For example, REDUNDANCY2 means that there must be at least two more recent backup sets or image copies of a datafile for any other backup set or image copy to be obsolete.
Example 4-31 Deleting Obsolete Backups
The following command deletes all backups and copies not needed to recover the database to an SCN within the last 30 days: