from stem to stern

Meaning 1
from the front end to the rear end of a boat
Sentence 1
Please wash the boat from stem to stern.
Meaning 2
to do something thoroughly from one end to another
Sentence 2
Please clean the office from from stem to stern.