That may not be the best advice. Depends on your industry, but burning a bridge so quickly may hurt you in the future. I’ve had former coworkers and other managers help me get my foot in the door for another job.
Besides, there’s something cathartic about knowing the end is right there and still getting paid for it.
I believe they can also ask the question “is this employee eligible for rehire?”