scripting the deletion of archivelogs

When I delete my archive logs, it lists the ones to be deleted than wants me
to confirm that I want to delete them. How would I write a shell script to
log into rman and delete my archive logs to get around this prompt ?

Other related posts: