Changes

Jump to navigation Jump to search
→‎Deletion: update for SMAPI 3.13.0 release
Line 113: Line 113:     
==Deletion==
 
==Deletion==
To remove an entry or file, just pass <code>null</code> as the data model. This works with any of the <samp>Write*</samp> methods except <samp>WriteJsonFile</samp> ({{SMAPI upcoming|3.13.0|inline=1|fixed}}):
+
To remove an entry or file, just pass <code>null</code> as the data model. This works with any of the <samp>Write*</samp> methods:
 
<syntaxhighlight lang="c#">
 
<syntaxhighlight lang="c#">
 
// delete entry (if present)
 
// delete entry (if present)
 
this.Helper.Data.WriteSaveData<DataModel>("example-key", null);
 
this.Helper.Data.WriteSaveData<DataModel>("example-key", null);
 
</syntaxhighlight>
 
</syntaxhighlight>
translators
8,446

edits

Navigation menu