How to force a factory reset or hard reset on Sony devices

Sony Xperia Z4 Ultra Sony Xperia Z4 Ultra
Sony D 2403 Sony D 2403
Sony Xperia C670X Sony Xperia C670X
Sony Xperia Z4 Compact Sony Xperia Z4 Compact
Sony Xperia LT29i Hayabusa Sony Xperia LT29i Hayabusa
Sony Tablet S Sony Tablet S
Sony Tablet S 3G Sony Tablet S 3G
Sony Tablet P 3G Sony Tablet P 3G
Sony Tablet P Sony Tablet P
Sony Xperia ion LTE Sony Xperia ion LTE
Sony Xperia ion HSPA Sony Xperia ion HSPA
Sony Xperia S Sony Xperia S
Sony Xperia P Sony Xperia P
Sony Xperia U Sony Xperia U
Sony Xperia sola Sony Xperia sola
Sony Xperia neo L Sony Xperia neo L
Sony Xperia acro HD SOI12 Sony Xperia acro HD SOI12
Sony Xperia acro HD SO-03D Sony Xperia acro HD SO-03D
Sony Xperia GX SO-04D Sony Xperia GX SO-04D
Sony Xperia SX SO-05D Sony Xperia SX SO-05D