Delete QR function