Configuring Archived Redo Log Retention
By default, archivelog deletion policy is disabled.
To configure archivelog deletion policy, run the following command. When the number of archived logs exceeds the specified number, RMAN deletes the oldest archived log.
To delete obsolete archivelogs, run the following command. If you do not run this command, the archived logs will be deleted from the fast recovery area (FRA) only.
To disable archivelog deletion policy, run the following command:
For details, see this Oracle article.