To clean your iPhone charging port, you need to carefully use a wooden or plastic toothpick or a soft dry brush, or short streams of compressed air, and clean away dust and lint. Metal objects, liquids, and powerful suction should be avoided because they are damaging to the port. In case of doubt or even when the phone refuses to charge, you should go to a service technician.
Know more : https://gadgetbyte.net/how-to-clean-iphone-charging-port/