I clean my machine every time I start a new project, more often if I am sewing something that has a lot of lint, like flannel.
Just a note of caution: Never use canned air to clean your machine. It will only blow the dust further into the machine and cause you problems.