Way to remove the unnecessary aazure and promethus plugins as part of telegraf build

Hi Team,

As part of telegraf source 1.28 or 1.31 ,we are getting security issues reported by BlackDuck, even though we dont carry or use the unneccessary plugins, we tried to removed the azure monitor and the go mod dependency, but it failed to compile, want to know if there is a way to get rid of azure, promethus related plugins, is that allowed or not , just trying to clarify.

Basically i dont want unnecessary dependencies part of go.mod file

Thank You
pratap