How to force a factory reset or hard reset on T-Mobile devices

T-Mobile myTouch Q 2 T-Mobile myTouch Q 2
T-Mobile Concord T-Mobile Concord
T-Mobile Prism II T-Mobile Prism II