The Harrier is still flying. The F-35B is set to replace them but since that aircraft hasn't been manufactured in large numbers yet, the Harrier remains in front line service and likely will for many years to come.
> The U.S. Marine Corps has extended the retirement date of its AV-8B Harrier IIs in increments until 2030, and most of the fleet will remain active through 2027, according to Boeing, which supports the 1980s-generation strike aircraft. Harriers were originally scheduled for retirement in 2015.
Not really true. There's a reason why the A-10 is still flying and the Harrier is not.