Frequently, either one will do just fine, except that I would not use the infinitive after a possessive: *my way to ..., *your way to ..., *Henry's way to ..., etc.
better way [to clean / of cleaning] many ways [to clean / of cleaning] his way of cleaning (probably not to clean fo