Peter Lambert, principal of C.K. McClatchy High School in the Sacramento City Unified School District, said the seniors were banned from walking at the Friday graduation ceremonies after redecorating the school Sunday night with peanut butter, spray paint, toilet paper and eggs, the Sacramento Bee reported Thursday.
"That was an immediate factor because I knew several of our students have peanut allergies," Lambert said.
He said he called the families of the allergic students and warned them not to come in to school Monday, but at least one student did come in and suffered a "bad allergic reaction."
The principal said the mess left by the students will cost more than $5,000 to rectify.
Lambert said the school's resource officer is involved in the investigation.
"If you're destroying property at the school and the dollar amount is so high that it takes several people to fix it, and the school is having to pay a lot of money, then it may go criminal," Sacramento police spokesman Sgt. Andrew Pettit said.