Remove pin lock from an old forgotten phone
You can Unlock your device using Odin to flash firmware but it can't stop get formatted during flash process.
When flashing a firmware it clear the internal storage.