The Jane's Addiction star was trapped with two strangers.

"They have to take the other (elevator) out in order to reach the one that's stuck, because the mechanics are complicated for these kinds of elevators," a security guard told the New York Post.

During the ordeal, Dave snapped photos of himself waiting to be freed.

"Stuck in an elevator!," he wrote on "This is what hell is like."

He also posted a picture of emergency personnel in the lobby of the building writing, "This is what's happening outside - STUCK IN THE ELEVATOR."

After Dave exited the elevator, he posed for pictures with firefighters and thanked them for "a safe rescue".