I have a mapping like this:
struct data {
string name;
string nickname;
}
mapping(address => data) public user;
What is the correct way to delete one element from the variable user? Do I only have to call delete(user[address])
or
do I also have to delete user[address].name
and user[address].nickname
?