A new law requires me to shave off my beard in order to renew my passport

Your excellency, my passport has expired and I want to renew it so that I can come and perform ‘Umrah and the obligatory Hajj. [The passport office] requested I shave off my beard in accordance with the new law which was recently passed in my country. So what do I do?