Exporting the animation

Hi guys
So I have a rig ik/fk for my animation needs. Now i want to export the animation but i only want to keep the bones (arms legs etc not the ik/fk links when exported nor the mesh i used(only the bones)) Anyway to do this?