

RMAN> configure retention policy to redundancy 2;In the above command we are asking RMAN to keep 2 backup copies of each file. Backup copies which are older than 2 copies can be marked as obsolete and hence can be deleted.
RMAN> configure retention policy to recovery window of 15 days;
When we issue this command RMAN will mark obsolete those backups which are older than 15 days.
To view backups which have become obsolete according to the current retention policy you can give the following command
RMAN> report obsolete;
RMAN> delete obsolete;
Once retention policy is configured we can anytime issue the above command to delete old backups and free up space.
Type the following command to know the currently configured RETENTION POLICY
RMAN> show retention policy;
Resetting RETENTION POLICY to default
You can reset the RETENTION POLICY to default value by giving the following command
RMAN> configure retention policy clear;
Disabling RETENTION POLICY
You can also disable retention policy. Disabling makes RMAN not consider any backup as obsolete
RMAN> configure retention policy none;