here is a method to erase the userapp partition:
I suggest you making some test with a device locally first