The students were caught with the knives (not pictured) during a spot screening at Bayard Rustin Educational Complex.

Ten students were suspended after a spot screening revealed they were trying to bring knives into their Chelsea school, police sources said Thursday.

The screening happened Wednesday at the Bayard Rustin Educational Complex, six high schools located on W. 18th St. in Manhattan.

The Department of Education said metal detectors were brought in for the day to conduct a spot screening that’s part of its efforts to keep weapons out of schools.

“Weapons of any kind are not permitted in our schools and these items were swiftly and safely recovered,” said DOE spokeswoman Miranda Barbot. “The safety of students always comes first and we’ll continue to work closely with the NYPD to ensure students are provided with a safe, supportive and inclusive learning environment in all school buildings.”