I've set it in the moderators user group that they can't use the spam clean function and haven't ticked it when adding them as a moderator but they can still see it.
May I ask why you don't want moderators to ban spammers? Unless you have an addon or theme causing the issue, the no permission for the spam cleaner should not let them see it. However, you need to check user groups and user group permissions. Spam cleaner setting in both.
Although "Use the spam cleaner" option is set to Never, moderators can access spam cleaner. Analyze permissions show: Use the spam cleaner: No. Ref: https://xenforo.com/community/threads/moderators-can-access-the-spam-clean.162661/
Although "Use the spam cleaner" option is set to Never, moderators can access spam cleaner. Analyze permissions show: Use the spam cleaner: No. Ref: https://xenforo.com/community/threads/moderators-can-access-the-spam-clean.162661/