Using a single string key is a bug resolved in this commit, in the meantime you can use an array of keys in both removeKeyFromDictionary or remove, e.g:
sample |> remove(['myKey'])
FYI instead of ending everyline in a code-block you can use a quiet modifier to mute the entire code block then emit anything you need outside of the block, e.g: