Attach/Detach static mesh component to/from socket

OK, I get it, thanks.

I could also set the Pitch/Yaw/Roll of the mesh. That would set it permanently, right?