I don't see where that should be a problem
I am not an expert on this but I know folks who have given the firearm to the local Police Dept. and have them document that it is to be destroyed so you can take it off your books. One fellow even gave the local Sheriff a licensed fully automatic AR-16 for their use in law enforcement.I don't see where that should be a problem