Delete archive older than 1 day - oracle database script

delete archive older than 1 day - Oracle Database Script.

DELETE ARCHIVELOG ALL COMPLETED
BEFORE 'sysdate-1';

CROSSCHECK ARCHIVELOG ALL;

DELETE EXPIRED ARCHIVELOG ALL;