https://www.epo.org/en/service-support/faq/searching-patents/asian-patent-information/iran/filing-grant/can-i-withdraw-my

Can I withdraw my application before it is granted?

Yes, you can.