We describe a scheme of deterministic single-photon subtraction in a solid-state system consisting of a charged quantum dot coupled to a bimodal photonic-crystal cavity with a moderate magnetic field applied in a Voigt configuration. We numerically simulate injection of optical pulses into one of the modes of the bimodal cavity and show that the system deterministically transfers one photon into the second cavity mode for input pulses in the form of both Fock states and coherent states.