Delete Only Log Backup History in SQL Server
There isn't any builtin code to just delete the transaction log backup history. You'd have to roll your own to achieve that. 

But I would recommend that you just dump the data that you want to keep in a separate table and purge msdb backup history normally with sp_delete_backuphistory.