below is the rman script that runs every night.
It deletes the archive log files (but from the database, not the file system in windows) older than 2 days.
Can I safely assume that rman has all the info it needs to recover should we have a problem, and so we can set up a job to delete the physical files from the o/s after say 3 or 4 days to be safe? - I cant see what use they are if they have been disassociated from the database if I look in the view and they show as deleted.
Also, if for any reason we needed to go back i ntime, could we do that with via rman even though the archive logs are no longer available?

#set ORACLE_SID=acc
#rman target=/ catalog rman/mypassword@rmancat cmdfile=rman.rcv_rssystem.txt


configure retention policy to recovery window of 2 days;

configure controlfile autobackup off;

configure backup optimization on;

CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT = 'G:\ORACLE\rman_backups\acc\%d_%T_%U' ;

# print the configuration including the retention policy
SHOW ALL ;

# backup data files(DBF), redo files(ARC), control files(CTL), dataabse server parameter file(SPFILE)
BACKUP FULL DATABASE TAG='DATA' SPFILE TAG='PARAMETER' CURRENT CONTROLFILE TAG='CONTROL' PLUS ARCHIVELOG delete input TAG='REDO' ;

# delete backups that are no longer needed to satisfy the retention policy.
# delete any data backups generated without the KEEP option not required to recover
# delete redo backups are not needed if they are older than ANY existing data backup.
DELETE noprompt backup completed before 'sysdate-2';

# get complete list of existing backups
LIST BACKUP SUMMARY;

#-end of file-