how to remove samsung account without password for Active device

how to remove samsung account without password for Active device
Android vershion 5, 6 , 7

any idea or solution