Update - managed to get the handle off by unscrewing the pin, but haven't the foggiest how to get rid of the this bit!
Can't figure out how to remove this square-looking pin. Our bathroom door isn't opening properly so need to replace it. Thanks for any help!