If you cannot get into the space between the housing and the fan body, you may want to follow method two below, as it will tell you how to take more parts off the fan apart in order to remove it.
Once you have detached the fan wires from the wires coming from the ceiling, be sure to put the wire nuts back onto the wires coming from the ceiling. This way, if you need to turn the power back on before you install a new fixture, your wires will be safely capped off.
Even if you are going to put up a new ceiling fan, you should still remove the mounting bracket. Every ceiling fan comes with its own mounting bracket that is made specifically for that model.
Be gentle when removing the lightbulbs. If they happen to break, you should be cautious when removing a broken lightbulb from the socket.
It is a really good idea to retest that you have no power coming to the fan once you have opened up the light kit. This is most easily done with a non-contact voltage tester, which tests for magnetic fields around wires quickly and easily.
If you plan on re-using the fan, be sure to keep all the parts. Placing all the parts in a marked bag or envelope is a good idea.
Once you have detached the fan wires from the wires coming from the ceiling, be sure to put the wire nuts back onto the wires coming from the ceiling. This way, if you need to turn the power back on before you install a new fixture, your wires will be safely capped off.
Often, there will be a safety chain coming from the fan attached to a joist in the ceiling. If so, unhook the safety chain to free the fan.
Even if you are going to put up a new ceiling fan, you should still remove the mounting bracket. Every ceiling fan comes with its own mounting bracket that is made specifically for that model.