Remove the bedding, mattress and box springs from the bed.
Locate and examine the brackets to determine the size of the wrench and whether you will need a screwdriver to remove the nuts and bolts.
Have a helper hold the headboard and then the footboard in place so that it doesn't fall when the bolts are loosened.
Loosen the nuts with the wrench, holding the bolts in place with a second wrench if necessary. Set the nuts, bolts and any washers aside after removal.
Lift the footboard away from the bed and set aside. Repeat with the headboard.
Store the nuts, bolts and washers together in a plastic baggie for future use. In the event that your specific bed frame requires this hardware, return it to the bed and tighten with the wrench.