Deleting the Data
You can delete one data entity or identifier by using the SaveSystemAPI.DeleteAsync
method or you can clear all saved data by using the SaveSystemAPI.ClearAsync
method.
Note
The ClearAsync method clears all the saved data in the storage that are saved by the Save System but in some storage implementations it wipes out all the data and files at the base location of the saved data.
Delete a Single Saved Data
async void Start() {
// The identifier or path of the entity to delete
string identifier = "name.json";
// Delete the saved data
await SaveSystemAPI.DeleteAsync(identifier);
}
Delete All Saved Data
async void Start() {
// Clear all saved data
await SaveSystemAPI.ClearAsync();
}