Some parts of certain models can be placed in the dishwasher, some will need maintained every day, and others won’t.
Wipe with a damp towel and then a dry cloth. Remove loose grounds as this can affect the flavor of your coffee and make it bitter.
Think about how often you will maintain it realistically because if you choose a high maintenance machine and don’t maintain it, your machine probably won’t last as long.