Regulations Governing Immigration Inspection and Data Collection and Utilization Article 12

For an individual who has already completed the customs inspection and has to cancel his/her trip, he/she shall submit an application to the NIA with the representatives of the transportation sector to void the exit record and the exit stamp on the passport.
中文原文 入出國查驗及資料蒐集利用辦法第12條
已辦理出國查驗手續者,因故取消出國時,應由船舶或航空公司會同辦理退關手續,並刪除該次出國電腦紀錄及註銷該次出國查驗章戳。

English translation for reference only; the Chinese text prevails. Not legal advice.