The abs sensor is held in by 2 bolts. Remove the two bolts and it should come straight out. If it doesn't want to come out easily, try using a flat screwdriver and "wiggling" it out.
By the way, when reinstalling the sensor the bolts should be tightened to 71 lb-in