Walk the plank
To "walk the plank" was a means for execution of sailors by pirates.

In 2371, the crew of the  jokingly upheld this ancient naval tradition when they celebrated Worf's promotion to Lieutenant Commander on the holodeck. Later, Captain Jean-Luc Picard chided Commander William T. Riker after Riker mistakenly asked the computer to "remove the plank", causing Worf to fall into the water, rather than stating the correct "retract the plank". ()

Following an episode of conspiracy and distrust that occurred aboard the  in 2376, Captain Kathryn Janeway and Commander Chakotay discussed the latest rumors circulating aboard Voyager. While discussing trust between the two, Janeway jokingly claimed that she "heard the strangest rumor today. Apparently, the Captain and First officer almost came to blows." Chakotay questioned if it was mutiny, and Janeway replied that the "first Officer walked the plank," or at least, so she heard. ()

External link 
 

Punishments