Well if you are using SAP . why dont you use SAP tool itself.

i am sure you must be having SAP tool BRARCHIVE.
Use that it can delete logfiles after making sure on its own that it has been backed up.

I am not sure about standby though.
But i think you can write script using brarchive to backup and delete only those archives which are applied.