How do I remove this bolt from my bedframe?
Looks like an IKEA bed to me - something like the MALM or the HEREFOSS.

You first remove the metal rail, then undo the nut. The manual depicts a wrench (ikea part 113453) but a regular metric 13mm wrench reportedly works fine. From the assembly instructions: