How to replace fan fixture for a flat LED light fixture?
Remove the four drywall screws in the existing bracket and remove it. Then see about removing the pipe, it might just be part of the bracket. If there is an electrical box up there you can mount the led  fixture. If not, you'll have to install one. Was the fan controlled by a wall switch or a pull chain?