Producer Toby Jaffe recently revealed that Hawke plays a past version of Colin Farrell's Doug Quaid character in the movie.
Hawke told New York Magazine's Vulture: "I'm not in the final movie. I learned that huge scene, and I went and did it that day, and we goofed around, we figured it out, but it's not going to be in the film. Maybe it'll be a viral video."
Total Recall is a remake of the 1990 sci-fi film starring Arnold Schwarzenegger.
The new film, starring Colin Farrell and Kate Beckinsale, opens in cinemas on August 3 in the US and on August 22 in the UK.
Hawke previously revealed that he is in line to film the follow-up to his romantic films Before Sunrise and Before Sunset with Julie Delpy this summer.
Watch a trailer for Total Recall below: