Kanye West was determined to explain under oath why he thinks the paparazzi are worse than the Nazis ... but his panicked lawyer muzzled him.
TMZ has a copy of Kanye's deposition in the lawsuit filed against him by a paparazzo whom he attacked at LAX.
Nate Goldberg -- the lawyer for the photog -- is asking Kanye about a verse from his song, "Flashing Lights" ... rapping about paparazzi and saying, "I hate these n***as more than a Nazi."
Goldberg asks Kanye, "So why did you say that you hate the paparazzi more than the Nazis?"
Kanye responds, "'Cause that's what I wanted to say in that song."
Goldberg: "Well, you understood that the Nazis killed --"
At that point, Kanye's lawyer, a panicked Shawn Holley, interrupts, "Oh my gosh!"
Goldberg: "-- six million Jews."
Holley: "It's really been a long day and we should probably" (she's about to say recess)
Goldberg: "Well I'm not finished."
Goldberg then goes on to explain how it's "legitimate" for him to ask about the song because it shows Kanye's hatred for paparazzi.
Kanye then gets pissed that Goldberg quoted the "n" word from his song, saying, "But not legitimate to say n***a ... ever ... ever."
Holley successfully prevents Kanye from giving a full answer.