Detach the brake tubes from the master cylinder, and then install the plug.
Do not allow brake fluid to remain on a painted surface. Wash it off immediately.
Remove the master cylinder mounting nuts and then lift out the master cylinder.