ES3.DeleteKey

public static void DeleteKey(string key, string filePath, ES3Settings settings)

Description

Deletes a key from a file.

If the key or file does not exist, no exceptions will be thrown.

Parameters

[table th=”0″]key,”The unique key we want to use to identity the data we are deleting.”

filePath,”[Optional] The relative or absolute path of the file we want to delete the key from.”

settings,”[Optional] The settings we want to use to override the default settings.”[/table]

Examples

C#

// Deletes the key myKey from myFile.txt.
ES3.DeleteFile("myKey", "myFile.txt");

JS

// Deletes the key myKey from myFile.txt.
ES3.DeleteKey("myKey", "myFile.txt");