This cannot be undone. There is no way to get any of it back.
Ratings you left stay with the restaurants you gave them to. They carry a random code and a date, never your name, and once your account is gone the code points at nobody at all.
You have a visit in progress. It will be closed as approved before your account goes, so the restaurant is not left holding an open table.