18005.
(a) An officer to whom a weapon is surrendered under Section 18000, except upon the certificate of a judge of a court of record, or of the district attorney of the county, that the retention thereof is necessary or proper to the ends of justice, shall destroy that weapon and, if applicable, submit proof of its destruction to the court.(b) If any weapon has been stolen and is thereafter recovered from the thief or the thief’s transferee, or is used in a manner as to constitute a nuisance under Section 19190, 21390, 21590, or 29300, or subdivision (a) of Section 25700 without the prior knowledge of its lawful owner that it would be so used, it shall not be destroyed pursuant to subdivision (a) but shall be restored to the lawful owner, as soon as its use as
evidence has been served, upon the lawful owner’s identification of the weapon and proof of ownership, and after the law enforcement agency has complied with Chapter 2 (commencing with Section 33850) of Division 11 of Title 4.
(c) No stolen weapon shall be destroyed pursuant to subdivision (a) unless reasonable notice is given to its lawful owner, if the lawful owner’s identity and address can be reasonably ascertained.
(d) If the weapon was evidence in a criminal case, the weapon shall be retained as required by Chapter 13 (commencing with Section 1417) of Title 10 of Part 2.
(e) (1) If a law enforcement agency contracts with a third party for the destruction of firearms or other weapons pursuant to this section
or any other related law, the agency shall ensure that any such contract explicitly prohibits the sale of any firearm or weapon, or any part or attachment thereof.
(2) This subdivision is not intended to prohibit the recycling, or sale for the purpose of recycling, of any scrap metal or other material resulting from the destruction of a firearm or other weapon.