• Manual
  • API Documentation
  • Guides
  • Deleting the Data

    Show / Hide Table of Contents
    • Introduction
    • Installation
    • Getting Started
    • Demos
    • The Save System API
    • Auto Save
    • Platforms
    • Security
    • Serialization
    • Supported Data Types
    • Migration
    • FAQ
    • Changelog
    • Extend
      • Overview
      • Converter
      • Encryption
      • Storage
    • Guides
      • Overview
      • Configuring Settings
      • Using Auto Save
      • Basic Saving and Loading
      • Saving and Loading Raw Data
      • Deleting the Data
      • Saving and Loading Images
      • Saving and Loading Scene Objects
      • Saving and Loading Assets
      • Saving and Loading Readonly Properties
    • Integrations
      • Overview
      • Google Play Games
      • Xbox Live
      • Bolt
      • Firebase
      • PlayFab
      • PlayMaker
      • Steam Auto-Cloud
      • Steamworks .NET
      • Facepunch Steamworks
      • Text Mesh Pro
    • Storage
      • Overview
      • Backup
      • Catalog
      • Meta Data
      • Built-in Storages
        • File
        • PlayerPrefs
        • Memory
      • Third-party Storages
        • Firebase
          • Realtime Database
          • Cloud Storage
          • Firestore
        • PlayFab
          • Entity Objects
          • Entity Files
          • User Data
        • Steam
          • Steamworks .NET
          • Facepunch Steamworks
        • Google Play
          • Saved Game
        • Xbox Live
          • Connected Storage

    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();
    }
    
    • Improve this Doc
    • 0 Comments
    In This Article
    • Delete a Single Saved Data
    • Delete All Saved Data