Legobot manages quite a few different tasks, so in many cases blocking the bot is not the best option. Some tasks have an "off switch", which will be mentioned in the edit summary or down below. You can probably also stop the bot from trampling over a specific page using {{nobots}}. If you absolutely must, you can block the bot.
Wikipedia editing bot run by Legoktm
This user account is a botoperated by Legoktm (talk).It is used to make repetitive automated or semi-automated edits that would be extremely tedious to do manually, in accordance with the bot policy. The bot is approved and currently active. Administrators: if this bot is malfunctioning or causing harm, please block it.
This bot runs on Wikimedia Toolforge. It runs on the legobot tool account (recent Grid jobs · k8s-status · k8s grafana). Administrators: If this bot needs to be blocked due to a malfunction, please remember to disable autoblocks so that other Toolforge bots are not affected.
For most things, {{bots|deny=Legobot}} should work. If you wish to opt-out of GA bot notices, please use {{bots|deny=GA bot}}
If it keeps removing an RFC as expired that you wish to continue for whatever reason, add <!-- RFCBot Ignore Expired --> somewhere on the page. It's your responsibility to archive the RFC and remove the template once it is over.