Replicant 6.0 0004 has not been released yet, at the time of writing we only have RC images.
So the information in this section may change over time.
To erase all the data on the device and install this release, you can use the ReplicantInstallation instructions.
You will need to use these instructions which also erase all the data on the device if:You can also use these instructions if erasing your data is not an issue.
First you will need to prepare your device for the migration of the contact database. See the MigrateContactsDatabase article for the instructions on how to do that.
Then once this is done, for migrating to Replicant 6.0 0004, you will need to read the AndroidSystemKeyMigration article before following the MinorVersionUpgrade installation instructions.