Please add the following shell script(cleanup.sh) to the crontab of oracle user :)
this will run on every monday @3.30 p.m ,File name is cleanup.sh.Out put will be written to /tmp/clanup.lst
Add this on crontab -e
#crontab -e
30 15 * * 1 /home/oracle/cleanup.sh > /tmp/cleanup.lst
#vi /home/oracle/cleanup.ksh
Add following this to the file
export ORACLE_SID=ORCL
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
rman target sys/oracle@ORCL243 << HERE
delete noprompt archivelog all completed before 'sysdate-10';
HERE
Please Do remember to add file permission to cleanup.sh
chown -R oracle:oinstall /home/oracle/cleanup.sh
chmod -R 777 /home/oracle/cleanup.sh
chown -R oracle:oinstall /home/oracle/cleanup.sh
chmod -R 777 /home/oracle/cleanup.sh