Hi!
In Unity, we've a nice panel with a button to upgrade the SDK.
If you press the button, it will execute the upgrade. First, it will delete the old PlayFabSDK folder and download the current one.
The code to delete is this one here: https://github.com/PlayFab/UnitySDK/blob/master/ExampleTestProject/Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs#L376
So, for whatever reason, in my current project "PlayFabEditorPrefsSO.Instance.SdkPath" was an empty string (or null).
If you put an empty string or null into Unity's FileUtil.DeleteFileOrDirectory-method it will simply delete your whole project. Unity will crash and if you re-open the project, all you get is an empty 3D template. Everything else is gone, even folders like ".git" etc.
IMHO the PlayFab Editor Extensions should check on delete again, if the file path is correct or at least it's not an empty string to not delete the whole project. :-)
I have no idea, why the SdkPath was empty string or null, but as written, the extension should at least check, it's not the case, when deleting the SDK.