go map delete entry code example Example: go remove from map m := map[string]string{"key1": "val1", "key2": "val2"} delete(m, "key1")