removeChild help

This looks very simple but I cannot get it to work. :skull:
I have a movieclip named A.
Inside A, I have a movieclip named B.
I just want to remove B from the stage

I tried

A.removeChild(B);

but that didn’t work. What did I do wrong?