Has anyone ever automated themselves out of a job?

Has anyone ever automated themselves out of a job and if so how and what did they do?