Disconnect the brake switch connector (A).
Pull the locking plate (A) as indicated by the arrow.
Turn brake switch 45° counterclockwise and remove it.