Since the email isn’t on your computer but in the cloud, all you’re doing is changing the folder the email resides in at Yahoo. To remove it, you’ll still need to clean out your spam folder.