github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata-istanbul/mapping-delete.sol (about) 1 pragma solidity ^0.8.4; 2 contract MyContract { 3 struct Data { 4 uint a; 5 uint b; 6 } 7 mapping (uint => Data) public items; 8 constructor() { 9 items[0] = Data(1,2); 10 items[1] = Data(3,4); 11 items[2] = Data(5,6); 12 delete items[1]; 13 } 14 }