Before doing a complete factory reset, you can remove the MySQL database. On OS5 and an ULTRA Ex2 it is described here: