You can cancel your flight with Iberia Airlines. Iberia's cancellation policy states that non-refundable tickets need payment of a cancellation fee based on fare type, travel class, and cancellation period. In an emergency, refundable tickets may be more useful.
https://flightcancellationpoli....cy.com/iberia-cancel

Iberia Cancellation Policy, Fee and Refund

The Iberia cancellation policy states that you can cancel your Iberia airline within 24 hours and get a full refund; otherwise, you have to pay a cancellation fee.