Goal: How do I get rid of spam emails

Which of the following methods is more reasonable for accomplishing this goal?
Select "all' then it will clear all the spam in your inbox