• Removes the key-value pair associated with the given key from the datastore of the specified address.

    Remarks

    Can only be called at smart contract generation time by the parent smart contract to the child's address.

    Throws

    • if the key does not exist in the datastore.
    • if the contract at the given address does not exist
    • if the caller is not authorized to modify the datastore.
    • [compilation only] if the key type are neither string, StaticArray<u8>, or Args.

    Type Parameters

    • T

      Can be either string, Args, or StaticArray<u8>.

    Parameters

    • address: Address

      The child smart contract address.

    • key: T

      The key to delete from the datastore.

    Returns void

Generated using TypeDoc