You can do a factory reset which will wipe all data and user apps and restore the phone to the condition it had when you first took it out of the box.
But as you apparently had this ad issue from since the phone was new, it is not likely to solve it.