If it is prohibited, it is not impossible for the school teacher to check the confiscation on behalf of the school. However, if it is "throwing", it is too simple and rude to discuss. A more reasonable way is to give a warning before detaining, and return it and take it away from school at the right time.
Without the school's prohibition, it is not appropriate for teachers to discard students' personal belongings at will. You can complain to the school (of course, you must provide clear evidence). The relevant basis can be based on the fifth paragraph of Article 5 of Chapter 2 of the Regulations on the Management of Students in Ordinary Colleges and Universities of the Ministry of Education. If you have any objection to the punishment or handling given by the school, you can complain to the school or the education administrative department; Complaints or legal proceedings against schools and faculty that infringe upon their personal rights, property rights and other legitimate rights and interests. "