knocking transmission on 2005 Mazda RX-8

There is knocking coming from the manual transmission when the clutch is engaged. The sound goes away when the clutch is no longer engaged.

Asked by for the 2005 Mazda RX-8
If you mean the sound happens when the clutch pedal is on the floor but goes away when you raise it and the car moves, then that sounds like it could be a possible throw out bearing that is wearing out.
If the noise happens when you are moving and your foot is off the clutch pedal, then it is an internal transmission problem.
A clutch issue is not so serious, but an internal manual transmission issue could mean it is time for a rebuilt transmission.
I was thinking it was the throwout bearing, just wanted some conformation, thank you.