Determine the first active log for each database:
Code:
$ db2 get snapshot for database on <yourdb> | grep "first active"
File number of first active log = 28877
You can delete logs prior to that log but that will essentially make prior backups useless.
Alternatively, you can find what was the earliest log for the last backup and delete files prior to that:
Code:
$ db2 list history backup since 20090208 for <yourdb>
List History File for ???????
Number of matching file entries = 1
Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Backup ID
-- --- ------------------ ---- --- ------------ ------------ --------------
B D 20090208220002001 N D S0028871.LOG S0028872.LOG
----------------------------------------------------------------------------