$CONTRACT_ID
for contract account id and $USER_ID
for user account id. $TOKEN1
, $TOKEN2
, et cetera are accounts for tokens.export CONTRACT_ID=ref-finance.testnet
$CONTRACT_ID
you have access keys for:unregister: true
to also remove storage occupied by any given token. Alternatively the user can call near call $CONTRACT_ID unregister_tokens "{\"token_ids\": [\"$TOKEN1\"]}" --accountId $USER_ID
to remove balance of $TOKEN1 from user.near view $CONTRACT_ID get_deposits "{\"account_id\": \"$USER_ID\"}"
returns empty set), the user's account can be completely deleted: