Vertical ocean‐bottom seismograph (OBS) data at frequencies below 0.05 Hz are contaminated by noise induced by infragravity waves. We constructed the transfer function between pressure and velocity data from OBSs deployed in Taiwan waters to remove the wave pressure‐induced noise from seismic recordings. Data were analyzed from five portable broadband OBSs deployed each for 10 months at water depths from 1740 to 4600 m and from a cabled, shallow‐buried seismograph (EOS1) installed on the seafloor at 300 m depth. Removing long‐period noise from these OBS data improves the identification of teleseismic phases such as P, S, SS, Pdiff, and PKIKP that are otherwise ambiguous or unidentifiable. For EOS1, infragravity‐wave signals completely mask the P and S waveforms in the 10–50 s period band suitable for centroid moment tensor (CMT) solutions for most of the local events. Application of the transfer functions to predict and remove wave deformation yielded clean prominent P and S waveforms at these periods and aided in the CMT determination for small events jointly with land stations. The relative amplitudes of the wavenumber‐normalized transfer function for some of the OBSs are mostly determined by the thickness of the sediment at the OBS site.