Not sure, it's different for each carrier. I hope you have backups, at least an adb backup. Samsung cloud backup does a decent job too. If you have a recent backup, it might be easier to factory resset, and then restore. If you don't have any backup, you risk losing all your data.
You can try...