It's as simple as turn it in - 回複:謝謝! I94已過期如何用AP?.............回
However, your leaving with a pending petition with USCIS is considered to abandon such petition. When you enter US using an AP, you become a "bona fide" AOS, which means you may need to apply visa at a US consulate to be back on H-1.