The shelf is likely attached to this wall and itself with screws. Can you see any? They could be painted over our even filled over. Best and cleanest way to removed would be to simply unscrew it from the wall. Be prepared if this was painted after being attached, it may still to the wall and rip the drywall a bit on its way out.