Dwarf spheroidal galaxies are compact stellar objects with small or negligible astrophysical backgrounds, widely considered as promising targets to search for a signal from the dark matter decay and annihilation. We present constraints on the lifetime of the superheavy decaying dark matter branching to the $qbar{q}$ channel in the mass range $10^{19} - 10^{25}$ eV based on the directional limits on the ultra-high-energy (UHE) gamma rays obtained by the Pierre Auger Observatory and the Telescope Array experiment. Attenuation effects during the propagation of UHE photons towards Earth are taken into account, with the strongest constraints derived for the Ursa Major II, Coma Berenices and Segue I galaxies.