The optical code-division multiple access(OCDMA) based on fiber Bragg gratings(FBG) and two-dimensional wavelength-time code is studied theoretically and experimentally.A novel OCDMA add-drop multiplexer is introduced to drop a code channel without disturbing the rest code channels.The proposed add-drop multiplexer is cost-effective,and the channel-dropping scheme is verified in a simulation.