My Mac is infected with the Yahoo Redirect. How can I delete it?

Operating System
macOS High Sierra 10.13.6 (17G14042)
Current issues and symptoms
The Yahoo redirect has hijacked my Mac. Also infected my desktop.
Affected Browser
  1. Safari
Browser Settings: Homepage and Default Search Engine
Gmail Safari
Browser Extensions
Apple