how to deal with suspicious code in plugins in defender

Hi,
When defender finds suspicious code in a plugin, is it best to just let it delete the plugin and reinstall the plugin?