{
    "Function": "deleteAsset",
    "File": "contracts/NestedRecords.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "require(bool,string)",
        "onlyFactory",
        "freeToken"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function deleteAsset(uint256 _nftId, uint256 _tokenIndex) public onlyFactory {\n        address[] storage tokens = records[_nftId].tokens;\n        address token = tokens[_tokenIndex];\n        Holding memory holding = records[_nftId].holdings[token];\n\n        require(holding.isActive, \"NestedRecords: HOLDING_INACTIVE\");\n\n        delete records[_nftId].holdings[token];\n        freeToken(_nftId, _tokenIndex);\n    }"
}