Is there any way to "retrieve" items when released to the public within a game?

Imagine if you released a sword with a bug and it is saved with many swords in their backpack,

how would you effectively remove it from all save files?