Show / Hide Table of Contents

Storage.Delete Method (StorageContext, byte[])

Deletes a value from the peristent store based on the given key.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public extern void Delete(Neo.SmartContract.Framework.Services.Neo.StorageContext context, byte[] key)

Parameters:

Context: Storage context as a StorageContext .

Key: Key as a byte array.

Return value: void.

Example

public class Contract1: FunctionCode
{
     public static void Main()
     {
         Storage.Delete(Storage.CurrentContext, new byte[] {0});
     }
}

Back