In addition to the previous meanings there is a third, which is to get rid of the dirt by working, that is, 'until you run out of nails'.