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

Xiaomi Redmi K30 Ultra Xiaomi Redmi K30 Ultra
Xiaomi Redmi 9 Prime Xiaomi Redmi 9 Prime
Xiaomi Black Shark 3S Xiaomi Black Shark 3S
Xiaomi Redmi 9 Xiaomi Redmi 9
Xiaomi Redmi 9C Xiaomi Redmi 9C
Xiaomi Redmi 9A Xiaomi Redmi 9A
Xiaomi Poco M2 Pro Xiaomi Poco M2 Pro
Xiaomi Mi 10 Lite Zoom Xiaomi Mi 10 Lite Zoom
Xiaomi Mi 10 Youth 5G Xiaomi Mi 10 Youth 5G
Xiaomi Redmi 5 Plus (Redmi Note 5) Xiaomi Redmi 5 Plus (Redmi Note 5)
Xiaomi Redmi 8A Pro Xiaomi Redmi 8A Pro
Xiaomi Redmi 10X Pro 5G Xiaomi Redmi 10X Pro 5G
Xiaomi Redmi 10X 5G Xiaomi Redmi 10X 5G
Xiaomi Redmi 10X 4G Xiaomi Redmi 10X 4G
Xiaomi Redmi K30i 5G Xiaomi Redmi K30i 5G
Xiaomi Poco F2 Pro Xiaomi Poco F2 Pro
Xiaomi Redmi K30 5G Racing Xiaomi Redmi K30 5G Racing
Xiaomi Mi CC9 Meitu Edition Xiaomi Mi CC9 Meitu Edition
Xiaomi QIN 2 Pro Xiaomi QIN 2 Pro
Xiaomi Mi Note 10 Lite Xiaomi Mi Note 10 Lite